From bc0692d75b1eeb7bc439869d892da9b835b40e0d Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 24 Aug 2016 19:23:37 +0200 Subject: Removing mini-profiler that doesn't work, formatting timelines a bit better --- app/controllers/application_controller.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'app/controllers/application_controller.rb') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 399faa21e..73de1838c 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -5,13 +5,6 @@ class ApplicationController < ActionController::Base force_ssl if: "Rails.env.production? && ENV['LOCAL_HTTPS'] == 'true'" - # Profiling - before_action do - if (current_user && current_user.admin?) || Rails.env.development? - Rack::MiniProfiler.authorize_request - end - end - helper_method :current_account protected -- cgit