Or all(true)

On Wed, Feb 27, 2013 at 4:25 PM, Will Bryant <[email protected]> wrote:

>
> On 28/02/2013, at 11:17 , Jon Leighton <[email protected]> wrote:
>
> > #reload will always run the query.
> >
> > If I'm misunderstanding the use case please provide some examples.
>
> Hmm.  But you can't run reload on a scope to get an array - it returns a
> relation, which as per previous emails doesn't behave the same.
>
> So are you saying we should use .reload.to_a everywhere instead of #all?
>
> That really seems like a worse API than #all and this is a very common
> operation.  Is it really worth changing #all to be nearly useless and have
> no direct to do that?
>
> Could we at least have a method that does this, say "query"?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to