This project is archived and is in readonly mode.
Assocation preload of has many through discards some attributes
Reported by Frederick Cheung | May 7th, 2008 @ 09:46 PM
When eager loading a has many through association, some attributes are ignored. For example, given
class Author < AR:Base
has_many :posts
has_many :comments, :through => :posts, :order => 'created_at desc', :conditions => '...', :include => :author
then Author.find xxx, :include => :comments will not honour the :order, :conditions & :include options, which would have been respected if the comments association was loaded normally
Comments and changes to this ticket
-
Repository May 11th, 2008 @ 08:04 PM
- State changed from new to resolved
(from [3f0dccbbc7c98938349650033ff9a41a814d300d]) Ensure hm:t preloading honours reflection options. [#137 state:resolved]
Signed-off-by: Pratik Naik
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>