Rails3::Instantiation
Backports instantiation instrumentation from rails master to rails 3.2.18. More specifically, backports this commit.
Installation
Add this line to your application's Gemfile:
gem "rails3-instantiation"
And then execute:
$ bundle
Or install it yourself as:
$ gem install rails3-instantiation
Usage
Subscribe to "instantiation.active_record"
notifications.
You can also require "rails3/instantiation/log_notification"
to get the notifications logged via Rails.logger
as INFO
messages.
Contributing
- Fork it ( https://github.com/caius/rails3-instantiation/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