Skip to content

thanlanuot/acts_as_historiable

Repository files navigation

ActsAsHistoriable

Short description and motivation.

Usage

How to use my plugin.

Installation

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

Migration

Generate migration

$ rails acts_as_historiable:install:migrations

And then run migrate as usual

$ rake db:migrate

Upgrade

Run this command to get the latest code from master branch

$ bundle update acts_as_historiable

Add to model

Add this line into your model that you want to track its histories

class YourModel < ApplicationRecord
  acts_as_historiable
  ...
end

Contributing

Contribution directions go here.

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages