-
Notifications
You must be signed in to change notification settings - Fork 16
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
Issue with scope string #26
Comments
I looked into this and cannot see a case in which this gem would select |
Let's say we have a user and a book |
Unless you are explicitly setting the scope to |
No, I'm not setting the scope to |
Okay.. now, when trying to 2- when changing default scope to be |
@mhdrahmoun this issue was already solved in master. I suggest you use |
Good point @djaircarvalho. Will do so. (#27) |
Hi there,
I'm trying to use this gem in my project and I noticed a strange behavior in the
Favoritor
methods.I could
favorite
a favoritable item successfully but I couldn't get thefavorites_count
,remove_favorite
orfavorited?
results.after some checking, I found that the scope string is saved "favorite" in the database but when trying to select from the Favorite table you pass the string "Favorite" which means you'll get 0 results as the strings are not identical.
Thank you.
The text was updated successfully, but these errors were encountered: