Skip to content

ubilabs/acts_as_versioned

 
 

Repository files navigation

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

About

ActiveRecord plugin for versioning your models.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%