On 5 Feb 2009, at 12:39, Gabriele Tassoni wrote:
> > > > On 5 Feb, 10:47, Frederick Cheung <[email protected]> wrote: >> On Feb 4, 11:06 pm, Gabriele Tassoni <[email protected]> >> wrote: > > Hi Frederick, > thank you for the anwser. >> >> Not that I can think of. even if it did work I expect you;d just end >> up with a scope that it is equivalent to the first, slow, scope since >> a scope is by definition not much more than a set of options to pass >> to a single call to find (or count etc...) >> > I can understand, but a find returns an Array, a named_scope, a > Scope... It looks like there's a bit of inconsistency on how active > record results are showed.. I would have expected that any, ehrm.. > say... list of results would be always the same object, and that there > would be a way to upgrade a resultset expressed as an Array to a Scope > (that's, from what i can see, the same array proxied as a Scope) or > any other resultset format used.. a Scope isn't a result set really, just some options for find. (associations are a bit different, but that's a whole other kettle of fish) 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 -~----------~----~----~----~------~----~------~--~---

