AuditLogger is a super simple audit logger for Ruby on Rails applications. It logs changes to your models in a simple and easy to understand way."
Add this line to your application's Gemfile:
gem "audit_logger"
And then execute:
$ bundle
Install and run the migrations:
$ bundle exec rails audit_logger:install:migrations
$ bundle exec rails db:migrate
Configure ignored attributes (if any) by creating an initializer (config/initializers/audit_logger.rb):
AuditLogger.configure do |config|
config.ignored_attributes = %i[id created_at updated_at deleted_at some_other_attribute_to_ignore]
end
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.