On Mar 9, 11:25 am, Colin Law <[email protected]> wrote:
> I had noticed that some queries don't get run till the collection is
> used, whereas others seem to run immediately.  I did not find
> documented exactly how to tell in advance which will get run and which
> won't.  I wonder whether using a named scope would guarantee delayed
> operation.

(named) scopes are lazily evaluated.

Fred

-- 
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 [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-talk?hl=en.

Reply via email to