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

Fix calculate with a string value in from and eager loading #25374

Merged

Conversation

kamipo
Copy link
Member

@kamipo kamipo commented Jun 12, 2016

construct_relation_for_association_calculations pass a string value to
construct_join_dependency when setting a string value in from.
It should not pass a string value, but always joins_values.

Related #14834, #19452.

Fixes #24193.

`construct_relation_for_association_calculations` pass a string value to
`construct_join_dependency` when setting a string value in `from`.
It should not pass a string value, but always `joins_values`.

Related rails#14834, rails#19452.

Fixes rails#24193.
@rails-bot
Copy link

r? @sgrif

(@rails-bot has picked a reviewer for you, use r? to override)

@sgrif sgrif merged commit 1efc81b into rails:master Jun 13, 2016
@kamipo kamipo deleted the fix_calculate_with_string_in_from_and_eager_loading branch June 13, 2016 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants