about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-24 19:59:11 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-24 19:59:11 +0100
commit8e34bed7cce7b97388e55fabacee7d424b5846ea (patch)
tree9aa94e7d781576963267ecb3c351ba990c6e4424 /app
parentb6ee2fb1c67807238943195ab88372f7121b170a (diff)
Mini Profiler not working well, remove it
Diffstat (limited to 'app')
-rw-r--r--app/controllers/application_controller.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index effb4ed78..847763c65 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -14,7 +14,6 @@ class ApplicationController < ActionController::Base
 
   before_action :store_current_location, except: :raise_not_found, unless: :devise_controller?
   before_action :set_locale
-  before_action :check_rack_mini_profiler
 
   def raise_not_found
     raise ActionController::RoutingError, "No route matches #{params[:unmatched_route]}"
@@ -32,10 +31,6 @@ class ApplicationController < ActionController::Base
     I18n.locale = I18n.default_locale
   end
 
-  def check_rack_mini_profiler
-    Rack::MiniProfiler.authorize_request if current_user && current_user.admin?
-  end
-
   protected
 
   def not_found