On Nov 9, 11:35 am, Joaquin Rivera Padron <[email protected]> wrote:
> ActiveRecord.all is used in it
>
> see it in the gist:http://gist.github.com/229884
>
> I could of course write that in some other way, but the question would be:
> could AR.all be turned into a NamedScope and not an Array?
It could be interesting to do this. For now instead of doing self.all
you could try self.all.scoped({})
Fred
>
> any ideas? in the mean time I will refactor my code and make my specs happy
> :-)
>
> cheers,
> joaquin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---