Forum: Ruby on Rails [ANN] acts_as_versioned_association plugin

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C004d67820a114e24ccf6f2ddaf5b236?d=identicon&s=25 Richard Livsey (Guest)
on 2006-06-08 18:54
(Received via mailing list)
Building on the great 'acts_as_versioned' plugin by technoweenie, I've
written a small plugin which also stores versions of associations.
It's early and experimental at the moment, but does work.

For example:

class Article < ActiveRecord::Base

   has_many :images
   has_and_belongs_to_many :categories

   acts_as_versioned
   acts_as_versioned_association :images
   acts_as_versioned_association :categories

end

So now the Article model is versioned as usual, but also the associated
images and categories are saved with each version too.

There's more on my blog post, and feedback would be very welcome.
http://livsey.org/articles/2006/06/08/acts_as_vers...

Grab it here:
http://livsey.org/svn/plugins/acts_as_versioned_association/
This topic is locked and can not be replied to.