I am adding the Audited-ActiveRecord gem to my Rails 4 application.
In order to implement the gem I need to add an audited
method call to each model.
Is it possible to include this method in a single location instead of having to add it to each of my ActiveRecord models?
https://rubygems.org/gems/audited-activerecord
The audited gem allows me to do paste audited
into each model however as I'm trying to add auditing without having to paste audited
into 50+ existing models as well as future models.
For example:
class ModelOne < ActiveRecord::Base
audited
...
end
class ModelTwo < ActiveRecord::Base
audited
...
end
class ModelN < ActiveRecord::Base
audited
...
end