Enable SQL queries in mini-profiler
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
a355ea6f17
commit
93cdf8a312
2 changed files with 8 additions and 1 deletions
2
Gemfile
2
Gemfile
|
@ -167,7 +167,7 @@ group :development do
|
|||
gem "annotate", "~> 2.6.0.beta2"
|
||||
gem "letter_opener"
|
||||
gem 'quiet_assets', '~> 1.0.1'
|
||||
gem 'rack-mini-profiler'
|
||||
gem 'rack-mini-profiler', require: false
|
||||
|
||||
# Better errors handler
|
||||
gem 'better_errors'
|
||||
|
|
7
config/initializers/6_rack_profiler.rb
Normal file
7
config/initializers/6_rack_profiler.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
# If Mini Profiler is included via gem
|
||||
if Rails.env == 'development'
|
||||
require 'rack-mini-profiler'
|
||||
|
||||
# initialization is skipped so trigger it
|
||||
Rack::MiniProfilerRails.initialize!(Rails.application)
|
||||
end
|
Loading…
Reference in a new issue