3 ms·
Also if you want something to pull your ear when you're fudging things up, use the Bullet gem. Literally, just add this initializer in your development.rb
by sergiotapia 13y ago
Also if you want something to pull your ear when you're fudging things up, use the Bullet gem.
Literally, just add this initializer in your development.rb
config.after_initialize do
Bullet.enable = true
Bullet.alert = true
Bullet.bullet_logger = true
Bullet.console = true
Bullet.growl = true
Bullet.xmpp = { :account => 'bullets_account@jabber.org',
:password => 'bullets_password_for_jabber',
:receiver => 'your_account@jabber.org',
:show_online_status => true }
Bullet.rails_logger = true
Bullet.airbrake = true
end
https://github.com/flyerhzm/bullet https://github.com/flyerhzm/bullet
>The Bullet gem is designed to help you increase your application's performance by reducing the number of queries it makes. It will watch your queries while you develop your application and notify you when you should add eager loading (N+1 queries), when you're using eager loading that isn't necessary and when you should use counter cache.