I've installed the ActiveRecord
Reputation System on my app. How would I go about overriding or adding a callback/method to Evaluation model?
In general how do you add to any model for a gem you installed?
I've installed the ActiveRecord
Reputation System on my app. How would I go about overriding or adding a callback/method to Evaluation model?
In general how do you add to any model for a gem you installed?
Simply reopen the class:
You can put this file in
config/initializers/my_monkey_patch.rb
or inlib/my_monkey_patch.rb
, but the later must be loaded into your code.