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

Fixed AR::Relation#where edge case with Hash and other Relation #16503

Merged

Conversation

bogdan
Copy link
Contributor

@bogdan bogdan commented Aug 14, 2014

Backport #16502 to 4.1 stable

Example:

Author.where(posts: { author_id: Author.where(country_id: 1) }).joins(:posts)

Example:

  Author.where(posts: { author_id: Author.where(country_id: 1) }).joins(:posts)

Conflicts:
	activerecord/lib/active_record/relation/query_methods.rb
spastorino added a commit that referenced this pull request Aug 15, 2014
…stable

Fixed AR::Relation#where edge case with Hash and other Relation
@spastorino spastorino merged commit 9ab12cb into rails:4-1-stable Aug 15, 2014
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.

None yet

2 participants