-
Notifications
You must be signed in to change notification settings - Fork 216
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
acts_as_votable_options somehow became nil #193
Comments
Same issue here. A temporary workaround will be explicitly defining a method in your acts_as_votable model:
|
Same problem here. Whenever i want to down or upvote, I get the exact same error message. Nothing is votable anymore.
|
Does anyone have an app that can reproduce this issue? That would be helpful here! |
Don't have a project to share but the issue is reproducible: the problem seems related to models that implement a single table inheritance, when A workaround working for me is adding |
100% Had exactly the same issue. Had STI table (Parent class is called Had to manually add
to child classes:
And to the parent class. |
Here is my web app environment:
Here is the stack trace that i got:
Here is the error message:
After lookin for the code, here is the part of code that throw that error
acts_as_votable/lib/acts_as_votable/cacheable.rb
Line 107 in 313f06c
which call
acts_as_votable_options
that is assigned in https://github.com/ryanto/acts_as_votable/blob/599995f7ec5aa0f8a04312768fc956e9003d32d4/lib/acts_as_votable/extenders/votable.rb#L24-#L31which, per my understanding will never be nil except there is another assignment.
My model only calls
acts_as_votable
without any args so i assume it will use the default options.Anyone can explain why this could happen?
The text was updated successfully, but these errors were encountered: