Commit 9f9df18b

mo khan <mo@mokhan.ca>
2013-12-29 01:39:05
remove rack mini profiler in staging.
1 parent 7c9d7e8
Changed files (1)
app/controllers/application_controller.rb
@@ -2,7 +2,6 @@ class ApplicationController < ActionController::Base
   # Prevent CSRF attacks by raising an exception.
   # For APIs, you may want to use :null_session instead.
   protect_from_forgery with: :exception
-  before_filter :profile_application
   before_filter :load_categories
   before_filter :load_user
   before_filter :configure_permitted_parameters, if: :devise_controller?
@@ -13,10 +12,6 @@ class ApplicationController < ActionController::Base
     target.new(current_user)
   end
 
-  def profile_application
-    Rack::MiniProfiler.authorize_request if ENV['PROFILE_APPLICATION'] == true
-  end
-
   def load_categories
     @categories = Category.all
   end