Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple plugin which creates revisions of your model and comes with an equally simple differ.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.travis.yml
Gemfile
MIT-LICENSE
README.md
Rakefile
revision-san.gemspec

README.md

Revision-San

A simple Rails plugin which creates revisions of your model and comes with an equally simple HTML differ.

Install

$ gem install revision-san

Usage

Include the RevisionSan module into the model for which you'd like to keep revisions.

class Artist < ActiveRecord::Base
  include RevisionSan
end

And create a migration to add the columns needed by Revision-San to your model:

add_column :artists, :revision, :integer,           :default => 1
add_column :artists, :revision_parent_id, :integer, :default => nil

add_index  :artists, :revision_parent_id
Something went wrong with that request. Please try again.