diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-02-14 20:39:51 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-02-18 00:00:13 +0000 |
commit | f0b98050296b57d95dbc789f8e52fa82499d151a (patch) | |
tree | 817c7fa99ab5119b6db4a95f5fe2f415975cae54 /activerecord/test/models/post.rb | |
parent | b131cfba055bfbf25f3785c5235c1edbf04ff9f1 (diff) | |
download | rails-f0b98050296b57d95dbc789f8e52fa82499d151a.tar.gz rails-f0b98050296b57d95dbc789f8e52fa82499d151a.tar.bz2 rails-f0b98050296b57d95dbc789f8e52fa82499d151a.zip |
Ensure that association_ids uses the correct attribute where the association is a has_many :through with a :primary_key option on the source reflection. [#6376 state:resolved]
Diffstat (limited to 'activerecord/test/models/post.rb')
-rw-r--r-- | activerecord/test/models/post.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/post.rb b/activerecord/test/models/post.rb index 5f29196790..1bbcab3a39 100644 --- a/activerecord/test/models/post.rb +++ b/activerecord/test/models/post.rb @@ -90,6 +90,7 @@ class Post < ActiveRecord::Base has_many :standard_categorizations, :class_name => 'Categorization', :foreign_key => :post_id has_many :author_using_custom_pk, :through => :standard_categorizations has_many :authors_using_custom_pk, :through => :standard_categorizations + has_many :named_categories, :through => :standard_categorizations has_many :readers has_many :readers_with_person, :include => :person, :class_name => "Reader" |