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 get the following error after adding has_paper_trail in my model.
/Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/rake-0.8.7/lib/rake.rb:2503:in `const_missing': uninitialized constant PaperTrail::Version (NameError)
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.0.20/lib/active_support/inflector/methods.rb:124:in `block in constantize'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.0.20/lib/active_support/inflector/methods.rb:123:in `each'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.0.20/lib/active_support/inflector/methods.rb:123:in `constantize'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.0.20/lib/active_support/core_ext/string/inflections.rb:43:in `constantize'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/paper_trail-3.0.3/lib/paper_trail/has_paper_trail.rb:108:in `paper_trail_version_class'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/paper_trail-3.0.3/lib/paper_trail/has_paper_trail.rb:70:in `has_paper_trail'
from /Users/alex/Development/project/app/models/subscription.rb:3:in `<class:Subscription>'
Also tried explicitly loading that class and got this error:
/Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/paper_trail-3.0.3/lib/paper_trail/version_concern.rb:10:in `block in <module:VersionConcern>': undefined method `active_record_protected_attributes?' for PaperTrail:Module (NoMethodError)
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.0.20/lib/active_support/concern.rb:52:in `class_eval'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.0.20/lib/active_support/concern.rb:52:in `append_features'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/paper_trail-3.0.3/lib/paper_trail/frameworks/active_record/models/paper_trail/version.rb:5:in `include'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/paper_trail-3.0.3/lib/paper_trail/frameworks/active_record/models/paper_trail/version.rb:5:in `<class:Version>'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/paper_trail-3.0.3/lib/paper_trail/frameworks/active_record/models/paper_trail/version.rb:4:in `<module:PaperTrail>'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/paper_trail-3.0.3/lib/paper_trail/frameworks/active_record/models/paper_trail/version.rb:3:in `<top (required)>'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
from /Users/alex/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
The text was updated successfully, but these errors were encountered:
I get the following error after adding has_paper_trail in my model.
Also tried explicitly loading that class and got this error:
The text was updated successfully, but these errors were encountered: