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

  1. Fork it ( https://github.com/[my-github-username]/russian_roulette/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request