Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

Assocation preload of has many through discards some attributes

#137

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

Reported by Frederick Cheung · May 7th, 2008 @ 09:46 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [3f0dccbbc7c98938349650033ff9a41a814d300d]) Ensure hm:t preloading honours reflection options. [#137 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    May 11th, 2008 @ 08:04 PM