From 84f7dcb4f68f547dc56fe080d1b1034d790dc1ec Mon Sep 17 00:00:00 2001 From: mo khan Date: Tue, 4 Jun 2013 22:52:22 -0600 Subject: fix check that enables profiling in staging --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/application_controller.rb') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 43451355..471187b5 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -10,7 +10,7 @@ class ApplicationController < ActionController::Base end def profile_application - Rack::MiniProfiler.authorize_request unless ENV['PROFILE_APPLICATION'].blank? + Rack::MiniProfiler.authorize_request if ENV['PROFILE_APPLICATION'] == true end def load_categories -- cgit v1.2.3