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

write_inheritable_attribute no longer found in rails 3.2.1 #7

Open
wolfmanjm opened this issue Feb 9, 2012 · 1 comment
Open

write_inheritable_attribute no longer found in rails 3.2.1 #7

wolfmanjm opened this issue Feb 9, 2012 · 1 comment

Comments

@wolfmanjm
Copy link
Contributor

undefined method `write_inheritable_attribute' for #Class:0xb3546574

activerecord (3.2.1) lib/active_record/dynamic_matchers.rb:50:in method_missing' vendor/plugins/acts_as_rated/lib/acts_as_rated.rb:116:inacts_as_rated'
app/models/input.rb:5

Rewriting those two lines (116) as

      class_attribute :acts_as_rated_options
      self.acts_as_rated_options=
                                     { :rating_range => options[:rating_range],
                                       :rating_class => rating_class,
                                       :stats_class => stats_class,
                                       :rater_class => rater_class }

Seems to fix it

@shaileshkalamkar
Copy link

Same issue occurred with me. Using Rails 3.2.2

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

2 participants