hi there,
I have a method in a model that concatenates named_scopes at later points in
the method if certain conditions given. The concatenations go ok when all
that concatenation is done with named_scopes, but it blows when
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?

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to