We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Instead of having a reference to the holder, we currently use a user_id which is just an integer.
user_id
This is why we have to use Item.where(holder: max.id) instead of Item.where(holder: max).
Item.where(holder: max.id)
Item.where(holder: max)
No steps for reproduction since this is more of a request for refactoring than a bug.
The text was updated successfully, but these errors were encountered:
jacob271
No branches or pull requests
Request for Refactoring: Accessing the holder of an item can not be done as intended by Rails
Problem Description
Instead of having a reference to the holder, we currently use a
user_id
which is just an integer.This is why we have to use
Item.where(holder: max.id)
instead ofItem.where(holder: max)
.Steps For Reproduction
No steps for reproduction since this is more of a request for refactoring than a bug.
The text was updated successfully, but these errors were encountered: