diff options
author | Zach Dennis <zach.dennis@gmail.com> | 2008-10-04 15:42:36 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-10-04 17:49:39 +0100 |
commit | 95e1cf4812d4b964d7ab0fdf4bfa31177d27909c (patch) | |
tree | 82d7154cbf293128a06fafe040cf68f4d9d18f7f /activerecord/test/models | |
parent | 7659fb6a2b638703a99a63033d947d19089a6b85 (diff) | |
download | rails-95e1cf4812d4b964d7ab0fdf4bfa31177d27909c.tar.gz rails-95e1cf4812d4b964d7ab0fdf4bfa31177d27909c.tar.bz2 rails-95e1cf4812d4b964d7ab0fdf4bfa31177d27909c.zip |
Fix has_many :through when the source is a belongs_to association. [#323 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/post.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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'] |