Override find, munge the input, and pass it on to super.
--
-- Tom Mornini
On Jan 27, 2006, at 4:52 AM, Martijn van Leeuwen wrote:
> Hi Mailinglist,
>
> I hope this isn''t a stupid question, but i would like to have a
> default order by in my model for all queries made by activerecord.
> And if i would like to chance the order i just use
:order=>"field"
> so the default order by is overrided.
>
> I think this is a basic option of activerecord, but i haven''t
found
> the answer in the docs.
>
> Kind Regards,
>
> Martijn
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails