ActiveRecord plugin for versioning your models.
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit ahead of thibaudgg:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
CHANGELOG
MIT-LICENSE
README
RUNNING_UNIT_TESTS
Rakefile
VERSION.yml
acts_as_versioned.gemspec
init.rb

README

= acts_as_versioned - Ubilabs Fork

Added restore functionality for deleted versioned model by using a second column 
to reference the versioned model. This column is no real foreign_key and survives 
the destroy of the versioned model.

E.g.:

acts_as_versioned :association_options => {:dependent => :nullify}, :original_id_column=>"original_id"

----

foo.destroy
deleted = Foo.find_latest_versions_of_deleted
foo = restore(deleted.last)

or:

foo.destroy
find_all_versions_by_deleted_id
restore

== Github

http://github.com/ubilabs/acts_as_versioned

= acts_as_versioned - Original

This library adds simple versioning to an ActiveRecord module.  ActiveRecord is required.



== Resources

Install

* gem install acts_as_versioned

Rubyforge project

* http://rubyforge.org/projects/ar-versioned

RDocs

* http://ar-versioned.rubyforge.org

Subversion

* http://techno-weenie.net/svn/projects/acts_as_versioned

Collaboa

* http://collaboa.techno-weenie.net/repository/browse/acts_as_versioned

Special thanks to Dreamer on ##rubyonrails for help in early testing.  His ServerSideWiki (http://serversidewiki.com) 
was the first project to use acts_as_versioned <em>in the wild</em>.