diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-08-18 15:49:51 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-08-18 15:49:51 +0200 |
commit | 6deb9f966eb9a280cc16428ba9324ffc15ea60a8 (patch) | |
tree | ec3574856544cad4766a6bb93905089d8086db0a /app/controllers | |
parent | 10ba09f5466fe3d34a5ed78202c35f4e4f9d30e6 (diff) |
Live timelines using ActionCable
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index d5eaecdb1..f90628b0d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -5,7 +5,7 @@ class ApplicationController < ActionController::Base # Profiling before_action do - if current_user && current_user.admin? + if (current_user && current_user.admin?) || Rails.env == 'development' Rack::MiniProfiler.authorize_request end end |