aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/author.rb
diff options
context:
space:
mode:
authorSzymon Nowak <szimek@gmail.com>2009-08-13 21:18:43 +0200
committerAaron Patterson <aaron.patterson@gmail.com>2010-12-23 15:19:17 -0800
commit85683f2a79dbf81130361cb6426786cf6b0d1925 (patch)
treec802a675983c3a7cb9d3a31ae8adf63d1baca0ca /activerecord/test/models/author.rb
parentb79823832e6cd30a9f14f97ffdf1642d4d63d4ea (diff)
downloadrails-85683f2a79dbf81130361cb6426786cf6b0d1925.tar.gz
rails-85683f2a79dbf81130361cb6426786cf6b0d1925.tar.bz2
rails-85683f2a79dbf81130361cb6426786cf6b0d1925.zip
Fix creation of has_many through records with custom primary_key option on belongs_to [#2990 state:resolved]
Diffstat (limited to 'activerecord/test/models/author.rb')
-rw-r--r--activerecord/test/models/author.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/author.rb b/activerecord/test/models/author.rb
index 244c5ac4f5..83a6f5d926 100644
--- a/activerecord/test/models/author.rb
+++ b/activerecord/test/models/author.rb
@@ -78,6 +78,7 @@ class Author < ActiveRecord::Base
has_many :categorizations
has_many :categories, :through => :categorizations
+ has_many :named_categories, :through => :categorizations
has_many :special_categorizations
has_many :special_categories, :through => :special_categorizations, :source => :category