syntax error

This commit is contained in:
Devin Howard 2015-12-21 21:38:02 +08:00
parent d96e991de3
commit c58b2c805e

View file

@ -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'