forked from External/greenlight
linting
This commit is contained in:
parent
66ff9c7a2f
commit
0d252add03
|
@ -92,8 +92,7 @@ class ApplicationController < ActionController::Base
|
|||
}
|
||||
end
|
||||
|
||||
|
||||
def redirect_to_https
|
||||
redirect_to :protocol => "https://" if ( loadbalanced_configuration? and request.headers["X-Forwarded-Proto"] == "http")
|
||||
redirect_to protocol: "https://" if loadbalanced_configuration? && request.headers["X-Forwarded-Proto"] == "http"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue