Correctly return `associated_table` when `associated_with?` is true #25767

Merged
merged 1 commit into from Jul 28, 2016

Conversation

Projects
None yet
5 participants
@kamipo
Member

kamipo commented Jul 10, 2016

AssociationQueryHandler requires association initialized
TableMetadata even if table_name == arel_table.name.

Fixes #25689.

Correctly return `associated_table` when `associated_with?` is true
`AssociationQueryHandler` requires `association` initialized
`TableMetadata` even if `table_name == arel_table.name`.

Fixes #25689.
@rails-bot

This comment has been minimized.

Show comment
Hide comment
@rails-bot

rails-bot Jul 10, 2016

r? @matthewd

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

r? @matthewd

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

@rafaelfranca rafaelfranca merged commit 70ec7fe into rails:master Jul 28, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

rafaelfranca added a commit that referenced this pull request Jul 28, 2016

Merge pull request #25767 from kamipo/association_name_is_the_same_as…
…_join_table_name

Correctly return `associated_table` when `associated_with?` is true

@kamipo kamipo deleted the kamipo:association_name_is_the_same_as_join_table_name branch Jul 28, 2016

@rafaelfranca

This comment has been minimized.

Show comment
Hide comment
@rafaelfranca

rafaelfranca Jul 28, 2016

Member

Backported in e54e4ec

Member

rafaelfranca commented Jul 28, 2016

Backported in e54e4ec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment