Merge pull request #706 from sgmap/rack_mini_profiler_for_every_environment
Enable Rack mini profiler, on every environment
This commit is contained in:
commit
c21b5726b6
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