ActiveRecordAuditable
Short description and motivation.
Usage
How to use my plugin.
Installation
Add this line to your application's Gemfile:
gem "active_record_auditable"And then execute:
$ bundleOr install it yourself as:
$ gem install active_record_auditablerails active_record_auditable:install:migrationsSometimes you need to do something like this in config/initializers/active_record_auditable.rb:
Rails.configuration.to_prepare do
ActiveRecordAuditable::Audit.class_eval do
belongs_to :user, default: -> { Current.user }, optional: true
end
endContributing
Contribution directions go here.
License
The gem is available as open source under the terms of the MIT License.