add rack-mini-profiler

This commit is contained in:
Alexander Machehin 2015-06-02 22:32:25 +05:00
parent 20465a39d3
commit 635bc92d8e
3 changed files with 10 additions and 0 deletions

View File

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

View File

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

View File

@ -0,0 +1,6 @@
if Rails.env == 'development'
require 'rack-mini-profiler'
# initialization is skipped so trigger it
Rack::MiniProfilerRails.initialize!(Rails.application)
end