Enable SQL queries in mini-profiler

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-02-26 11:50:02 +02:00
parent a355ea6f17
commit 93cdf8a312
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
2 changed files with 8 additions and 1 deletions

View file

@ -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'

View 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