You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to visualize the previous versions of an object in a view:
MyObject.includes(:versions)
Doing this with Rails 4.0.5, Ruby 2.1.2 and PaperTrail 3.0.2 will lead to either of the following errors:
undefined method `version_class_name' for nil:NilClass
undefined method `version_class_name' for #<ActiveRecord::Associations::JoinDependency::JoinAssociation:0x007f89c5021830>
We use custom versioning classes defined through:
class MyObject < ActiveRecord::Base
has_paper_trail class_name: 'MyObjectVersion'
and MyObjectVersion defined as
class MyObjectVersion < PaperTrail::Version
self.table_name = 'my_object_versions'
I try to visualize the previous versions of an object in a view:
Doing this with Rails 4.0.5, Ruby 2.1.2 and PaperTrail 3.0.2 will lead to either of the following errors:
We use custom versioning classes defined through:
and
MyObjectVersion
defined asStacktrace:
The text was updated successfully, but these errors were encountered: