This project is archived and is in readonly mode.
![Frederick Cheung Frederick Cheung](https://entp-lh-avatar-production.s3.amazonaws.com/avatars/17477/large.jpeg?AWSAccessKeyId=AKIAJ4QBZRZBVMOUBNZA&Expires=2016454507&Signature=61pVCzedFf8jzPgRYjM7Q0SB%2B2E%3D)
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>