Enable Rack mini profiler, on every environment
This commit is contained in:
parent
60b7a5067d
commit
39c556f70e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue