I was about to suggest that. But it's Rails 1.2.3. I don't recall that
being available back then.

Neither was named_scopes, if I recall correctly.

My suggestion: don't subclass it. Have a class method in Location
perhaps called all_from_inner_city which runs the finder suggested by
Jonathan Clarke.



On Fri, Aug 14, 2009 at 11:03 AM, Dylan Egan<[email protected]> wrote:
>
> Hi Sonia,
>
> I'd recommend looking at default_scope.
> http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M002313
>
> Cheers,
>
> Dylan.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" 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/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to