Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0.3 incompatible with Rails 3.0.20 #406

Closed
crystalneth opened this issue Aug 12, 2014 · 3 comments
Closed

3.0.3 incompatible with Rails 3.0.20 #406

crystalneth opened this issue Aug 12, 2014 · 3 comments
Milestone

Comments

@crystalneth
Copy link

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:

gem 'paper_trail', :require => ["paper_trail/frameworks/active_record/models/paper_trail/version"]
/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'

@batter batter closed this as completed in 58b0bad Aug 29, 2014
@batter
Copy link
Collaborator

batter commented Aug 29, 2014

Please try version 3.0.5, which was just released and should alleviate your issue.

@mockdeep
Copy link
Contributor

Have you pushed the gem yet? Not seeing it on rubygems.

@batter
Copy link
Collaborator

batter commented Aug 30, 2014

Just pushed it up now. Sorry about that, ran into an issue and had to
re-push the release.

On Fri, Aug 29, 2014 at 7:54 PM, Robert Fletcher notifications@github.com
wrote:

Have you pushed the gem yet? Not seeing it on rubygems.


Reply to this email directly or view it on GitHub
#406 (comment)
.

@batter batter added this to the 3.0.5 milestone Sep 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants