Added bullet gem to track unusued eager loading.
This commit is contained in:
parent
0683738003
commit
44ef0a9807
3 changed files with 13 additions and 0 deletions
3
Gemfile
3
Gemfile
|
@ -53,4 +53,7 @@ group :development do
|
|||
# Re-enable rails benchmarker/profiler
|
||||
gem 'ruby-prof'
|
||||
gem 'test-unit'
|
||||
|
||||
# Get infos when not using proper eager loading
|
||||
gem 'bullet'
|
||||
end
|
||||
|
|
|
@ -57,6 +57,8 @@ GEM
|
|||
erubis (>= 2.7.0)
|
||||
binding_of_caller (0.6.8)
|
||||
builder (3.0.4)
|
||||
bullet (4.3.0)
|
||||
uniform_notifier
|
||||
chronic (0.9.0)
|
||||
client_side_validations (3.1.4)
|
||||
coderay (1.0.8)
|
||||
|
@ -205,6 +207,7 @@ GEM
|
|||
uglifier (1.3.0)
|
||||
execjs (>= 0.3.0)
|
||||
multi_json (~> 1.0, >= 1.0.2)
|
||||
uniform_notifier (1.1.1)
|
||||
vegas (0.1.11)
|
||||
rack (>= 1.0.0)
|
||||
whenever (0.8.1)
|
||||
|
@ -223,6 +226,7 @@ DEPENDENCIES
|
|||
acts_as_versioned!
|
||||
better_errors
|
||||
binding_of_caller
|
||||
bullet
|
||||
client_side_validations
|
||||
coffee-rails (~> 3.2.1)
|
||||
daemons
|
||||
|
|
6
config/initializers/bullet.rb
Normal file
6
config/initializers/bullet.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
if defined? Bullet
|
||||
Bullet.enable = true
|
||||
# Bullet.alert = true
|
||||
Bullet.bullet_logger = true
|
||||
Bullet.console = true
|
||||
end
|
Loading…
Reference in a new issue