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_versioned_association-plugin
Grab it here:
http://livsey.org/svn/plugins/acts_as_versioned_association/