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

Accept associations as inputs for array filters #303

Merged
merged 6 commits into from
Oct 2, 2015
Merged

Conversation

tfausak
Copy link
Collaborator

@tfausak tfausak commented Oct 1, 2015

This pull request will fix #301.

@tfausak tfausak added the bug label Oct 1, 2015
@tfausak tfausak self-assigned this Oct 1, 2015
@tfausak
Copy link
Collaborator Author

tfausak commented Oct 1, 2015

The specs are failing because the specs are using eql instead of eq. We started doing that in e454f1e. Collection proxies aren't eql to arrays, which is the root cause of #301.

Since we didn't really switch to eql for any particular reason, I think I'll change them over.

While it would be nice to use #eq, ActiveRecord's collection proxies
don't play nicely.
@tfausak
Copy link
Collaborator Author

tfausak commented Oct 1, 2015

Hmm, now the build is failing because sqlite3 won't build on JRuby.

@AaronLasseigne
Copy link
Owner

Can we just mock instead?

@tfausak
Copy link
Collaborator Author

tfausak commented Oct 2, 2015

We can! That worked well. Can you review these changes?

@AaronLasseigne
Copy link
Owner

👍

@tfausak tfausak merged commit bc58c6a into master Oct 2, 2015
@tfausak tfausak deleted the gh-301-associations branch October 2, 2015 16:02
tfausak added a commit that referenced this pull request Oct 2, 2015
@tfausak tfausak mentioned this pull request Oct 2, 2015
tfausak added a commit that referenced this pull request Oct 2, 2015
@tfausak tfausak mentioned this pull request Oct 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validation array with model
2 participants