marutosi/redmine — pull request #6 by Vanuan (2012-03-07 18:21:52+00:00)
Title: Rails3 straight 20120306

This is a fix to enable Wiki edit for Rails 3.2.1
Without this fix I had an error:

can't write unknown attribute `versioned_type'
activerecord (3.2.1) lib/active_record/attribute_methods/write.rb:34:in `write_attribute'
activerecord (3.2.1) lib/active_record/attribute_methods/dirty.rb:67:in `write_attribute'
activerecord (3.2.1) lib/active_record/attribute_methods.rb:31:in `[]='
vendor/plugins/acts_as_versioned/lib/acts_as_versioned.rb:383:in `clone_versioned_model'
vendor/plugins/acts_as_versioned/lib/acts_as_versioned.rb:303:in `save_version_on_create'
app/controllers/wiki_controller.rb:154:in `update'

Seems like in Rails 3.2.1 inheritance_column is not present when there is no inheritance.