20 Jul 10:44
eager loading a named_scope
From: gsterndale <gsterndale@...>
Subject: eager loading a named_scope
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-07-20 08:47:45 GMT
Subject: eager loading a named_scope
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-07-20 08:47:45 GMT
Hi, I'd like to eager load a named_scope like this: User.find(params[:id], :include => [:friends.married]) Any ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@... To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@... For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
RSS Feed