For when you wished you were still using Hibernate, or your hopes were dashed when the identity map was pulled from ActiveRecord. Or simply, you want to know if all of those SQL calls flashing by in your console are really necessary, and if not, where they can fixed.
Add this line to your application's Gemfile:
gem 'activebrokenrecord'
And then execute:
$ bundle
Or install it yourself as:
$ gem install activebrokenrecord
Usage is automatic so only require when you want this. Duplicate SQL queries are logged with backtraces.
- Fork it
- 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 new Pull Request