add rack-mini-profiler
This commit is contained in:
parent
20465a39d3
commit
635bc92d8e
1
Gemfile
1
Gemfile
|
@ -126,6 +126,7 @@ group :development do
|
|||
gem 'localeapp'
|
||||
gem 'skype'
|
||||
#gem 'ruby-dbus' if RUBY_PLATFORM =~ /linux/i # Error at deploy
|
||||
gem 'rack-mini-profiler', require: false
|
||||
end
|
||||
|
||||
group :development, :test do
|
||||
|
|
|
@ -354,6 +354,8 @@ GEM
|
|||
rack (1.5.2)
|
||||
rack-contrib (1.2.0)
|
||||
rack (>= 0.9.1)
|
||||
rack-mini-profiler (0.9.3)
|
||||
rack (>= 1.1.3)
|
||||
rack-protection (1.5.3)
|
||||
rack
|
||||
rack-test (0.6.3)
|
||||
|
@ -637,6 +639,7 @@ DEPENDENCIES
|
|||
protected_attributes
|
||||
puma
|
||||
pundit
|
||||
rack-mini-profiler
|
||||
rack-throttle (~> 0.3.0)
|
||||
rack-utf8_sanitizer
|
||||
rails (= 4.1.10)
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
if Rails.env == 'development'
|
||||
require 'rack-mini-profiler'
|
||||
|
||||
# initialization is skipped so trigger it
|
||||
Rack::MiniProfilerRails.initialize!(Rails.application)
|
||||
end
|
Loading…
Reference in New Issue