Acts As Versioned With Associations
June 8th, 2006
Richard Livsey has just built functionality on top of Technoweenie’s acts_as_versioned plugin to also version associations.
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
Now, not only is the article versioned but also the associations. I can’t quite think of something I would use it on yet, but it is a pretty cool idea. You can read more on Richard’s blog.

Sorry, comments are closed for this article to ease the burden of pruning spam. If you have any further comments, just send me an email.