From 95e1cf4812d4b964d7ab0fdf4bfa31177d27909c Mon Sep 17 00:00:00 2001 From: Zach Dennis Date: Sat, 4 Oct 2008 15:42:36 +0100 Subject: Fix has_many :through when the source is a belongs_to association. [#323 state:resolved] Signed-off-by: Pratik Naik --- activerecord/test/models/post.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord/test/models') diff --git a/activerecord/test/models/post.rb b/activerecord/test/models/post.rb index 3adbc0ce1f..6da37c31ff 100644 --- a/activerecord/test/models/post.rb +++ b/activerecord/test/models/post.rb @@ -22,6 +22,8 @@ class Post < ActiveRecord::Base end end + has_many :author_favorites, :through => :author + has_many :comments_with_interpolated_conditions, :class_name => 'Comment', :conditions => ['#{"#{aliased_table_name}." rescue ""}body = ?', 'Thank you for the welcome'] -- cgit v1.2.3