Short description and motivation.
How to use my plugin.
Add this line to your application's Gemfile:
gem 'acts_as_historiable', git: 'https://github.com/thanlanuot/acts_as_historiable'
And then execute:
$ bundle
Or install it yourself as:
$ gem install acts_as_historiable
Generate migration
$ rails acts_as_historiable:install:migrations
And then run migrate as usual
$ rake db:migrate
Run this command to get the latest code from master branch
$ bundle update acts_as_historiable
Add this line into your model that you want to track its histories
class YourModel < ApplicationRecord
acts_as_historiable
...
end
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.