aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/post.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-02-14 20:39:51 +0000
committerJon Leighton <j@jonathanleighton.com>2011-02-18 00:00:13 +0000
commitf0b98050296b57d95dbc789f8e52fa82499d151a (patch)
tree817c7fa99ab5119b6db4a95f5fe2f415975cae54 /activerecord/test/models/post.rb
parentb131cfba055bfbf25f3785c5235c1edbf04ff9f1 (diff)
downloadrails-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.rb1
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"