Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 852 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 852 Bytes

AuditLogger

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."

Installation

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

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.