Merge pull request #706 from sgmap/rack_mini_profiler_for_every_environment

Enable Rack mini profiler, on every environment
This commit is contained in:
Mathieu Magnin 2017-09-07 16:16:17 +02:00 committed by GitHub
commit c21b5726b6

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