aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/post.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2010-12-16 10:29:13 +0000
committerAaron Patterson <aaron.patterson@gmail.com>2010-12-20 13:56:04 -0800
commitb8153fd5a18441567f787a33ca882acb3bb5088a (patch)
tree54fcc3863416a35bff709a88fcfe2e2c91d182fc /activerecord/test/models/post.rb
parent9863d8a5f6576ab10df51230c0531cec8d4468f9 (diff)
downloadrails-b8153fd5a18441567f787a33ca882acb3bb5088a.tar.gz
rails-b8153fd5a18441567f787a33ca882acb3bb5088a.tar.bz2
rails-b8153fd5a18441567f787a33ca882acb3bb5088a.zip
Fix problem where wrong keys are used in JoinAssociation when an association goes :through a belongs_to [#2801 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 974e87d2bf..34ea49f731 100644
--- a/activerecord/test/models/post.rb
+++ b/activerecord/test/models/post.rb
@@ -38,6 +38,7 @@ class Post < ActiveRecord::Base
end
has_many :author_favorites, :through => :author
+ has_many :author_categorizations, :through => :author, :source => :categorizations
has_many :comments_with_interpolated_conditions, :class_name => 'Comment',
:conditions => ['#{"#{aliased_table_name}." rescue ""}body = ?', 'Thank you for the welcome']