diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-08-18 18:39:35 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-08-18 18:39:35 +0200 |
commit | 8985f8e66cabdc65dc3d81a3653f46d6e9799980 (patch) | |
tree | f400528b8d101de08ff373219776ec27e9e66462 /app/controllers | |
parent | 5a8c149f6b928b0463adf77de41e6b208aacdc5c (diff) |
Fixing more configuration issues with ActionCable
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/application_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 91f76d311..c190abdf2 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -3,11 +3,11 @@ class ApplicationController < ActionController::Base # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception - force_ssl if: "ENV['LOCAL_HTTPS'] == 'true'" + force_ssl if: "Rails.env.production? && ENV['LOCAL_HTTPS'] == 'true'" # Profiling before_action do - if (current_user && current_user.admin?) || Rails.env == 'development' + if (current_user && current_user.admin?) || Rails.env.development? Rack::MiniProfiler.authorize_request end end |