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

Return an empty collection when where(:foo => []) is given #412

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chewi
Copy link
Contributor

@chewi chewi commented Aug 12, 2016

The previous behaviour was to return everything! This is now consistent with ActiveRecord and avoids a needless request.

The new behaviour is not applied to has_one associations as they currently seem to ignore the where method entirely.

@edtjones
Copy link
Collaborator

hi @chewi I've just got commit access on this repo and plan to get back on track with maintenance over time - will be in touch soon!

@chewi
Copy link
Contributor Author

chewi commented Feb 20, 2017

Rebased.

@chewi
Copy link
Contributor Author

chewi commented Nov 10, 2017

Rebased again.

@chewi
Copy link
Contributor Author

chewi commented May 3, 2018

And again!

The previous behaviour was to return everything! This is now
consistent with ActiveRecord and avoids a needless request.

The new behaviour is not applied to has_one associations as they
currently seem to ignore the where method entirely.
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

Successfully merging this pull request may close these issues.

2 participants