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

Merged
merged 1 commit into from Apr 11, 2012

Conversation

Projects
None yet
2 participants
@kennyj
Contributor

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

Merge pull request #5720 from kennyj/should_use_klass_method
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