RussianRoulette
This gem enables bullet to run from time to time - so it's not annoying but you still check your n+1 queries sometimes.
Installation
Add this line to your application's Gemfile:
gem 'russian_roulette'
And then execute:
$ bundle
Usage
By default this gem will enable bullet on every second tuesday of the month - becouse why not. You can configure your own codition by setting reason_to_fire
proc in your application config/environments/development.rb
file - like so:
config.reason_to_fire = -> { Date.today.caturday? }
The proc will be evaluated when your application is started.
Contributing
- Fork it ( https://github.com/[my-github-username]/russian_roulette/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request