From c58b2c805e2b9271332d259ded4acc30e27f3877 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Mon, 21 Dec 2015 21:38:02 +0800 Subject: [PATCH] syntax error --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index de20193a..ea4597ab 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -12,7 +12,7 @@ class ApplicationController < ActionController::Base def after_sign_in_path_for(resource) unsafe_uri = request.env["REQUEST_URI"] - if unsafe_uri.starts_with? 'http' && !unsafe_uri.starts_with? 'https' + if unsafe_uri.starts_with?('http') && !unsafe_uri.starts_with?('https') protocol = 'http' else protocol = 'https'