diff options
author | Diego Algorta <diego@oboxodo.com> | 2010-05-15 12:33:18 -0300 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-05-15 16:53:59 +0100 |
commit | 3436fdfc12d58925e3d981e0afa61084ea34736c (patch) | |
tree | 72638ace2cd5c272a066c80c1ddaee094821dfba /activerecord/test/models | |
parent | 2d84f24af5cb0854a316929fa0d0720773be2162 (diff) | |
download | rails-3436fdfc12d58925e3d981e0afa61084ea34736c.tar.gz rails-3436fdfc12d58925e3d981e0afa61084ea34736c.tar.bz2 rails-3436fdfc12d58925e3d981e0afa61084ea34736c.zip |
Fix for get_ids when including a belongs_to association on a has_many association [#2896 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/post.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/post.rb b/activerecord/test/models/post.rb index d092c4bf09..dd06822cfd 100644 --- a/activerecord/test/models/post.rb +++ b/activerecord/test/models/post.rb @@ -69,6 +69,7 @@ class Post < ActiveRecord::Base has_many :authors, :through => :categorizations has_many :readers + has_many :readers_with_person, :include => :person, :class_name => "Reader" has_many :people, :through => :readers has_many :people_with_callbacks, :source=>:person, :through => :readers, :before_add => lambda {|owner, reader| log(:added, :before, reader.first_name) }, |