On Tue, Jan 5, 2010 at 12:06 PM, Josh Symonds <[email protected]> wrote: > I made a patch to allow eager loading to exclude specified columns on the > eagerly-loaded models. If you have a model that you want to load for a > specific reason -- like, say, you have lots of users, and you want to grab > all their posts but exclude the posts' bodies -- you can now specify that by > going: > > User.find(:all, :include => {:posts => {:except => :body}})
Isn't this already supported syntax (which would load the :except association for posts and the :body association for excepts)? Not that I think having an association named :except is a good idea, but it's something to consider. Jeremy
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
