18 Oct 2011, 04:48
Me_large_twitter_pragsmall

Michael McCracken (2 posts)

Trying out recipe 7: Version your models. However, I’m having some issues with acts_as_versioned.

Version 0.6.0 only appears to support ActiveRecord 3.0.10

Version 0.2.3 appears to support ActiveRecord 3.1.x, however - upon implementation you’ll get errors on Inflectors that are corrected by moving to ActiveRecord::Inflector (line 120 of acts_as_versioned.rb).

Should you fix that, you’ll then get errors about ‘undefined method `class_name_of_active_record_descendant’ when you try to db:migrate, or Chapter.new. This same error occurs when running a Rails 3.0.10 app with acts_as_versioned 0.2.3.

I did have success with Rails 3.0.10 and acts_as_versioned 0.6.0

29 Oct 2011, 14:38
Generic-user-small

Damien Delba (3 posts)

With acts_as_versioned 0.2.3, write in chapter.rb:

acts_as_versioned table_name: :chapter_versions

07 Jun 2012, 21:32
Generic-user-small

Jose E (10 posts)

I strongly advise you to bundle the acts_as_versioned Gem from Git. That brings in some patches not present in the last version, And it works well with Rails 3.2.3

  You must be logged in to comment