If I take a number Object like so :
@objects = Object.all[1..5]
I no longer can perform a where method on @object.
Is there anyway, I can still perform..
@objects.where(:attribute => identity)
So long as I know all the objects are of the same class?
Once you triggered
allan Array instance is returned, so answer to your question is no. There are some gotchas, though:Keep a scope variable. I.e. if you need to use a scoped object in multiple places, do the following:
Continue playing with scoping:
Hacky and inefficient way: