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

Get a properly aliased_table_name, when we use a polymorphic association. #5720

Merged
merged 1 commit into from
Apr 11, 2012

Conversation

kennyj
Copy link
Contributor

@kennyj kennyj commented Apr 3, 2012

According to ActiveRecord::Associations::BelongsToPolymorphicAssociation, we override klass method.
We get a properly aliased_table_name, when we use a polymorphic association and this method.

jonleighton added a commit that referenced this pull request Apr 11, 2012
Get a properly aliased_table_name, when we use a polymorphic association.
@jonleighton jonleighton merged commit 19ecde0 into rails:master Apr 11, 2012
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