Enable Rack mini profiler, on every environment

This commit is contained in:
Mathieu Magnin 2017-09-07 14:05:02 +02:00
parent 60b7a5067d
commit 39c556f70e

View file

@ -8,7 +8,7 @@ class ApplicationController < ActionController::Base
before_action :authorize_request_for_profiler
def authorize_request_for_profiler
if Rails.env.production? && administration_signed_in?
if administration_signed_in?
Rack::MiniProfiler.authorize_request
end
end