Activerecord default order by

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

Override find, munge the input, and pass it on to super.


– Tom M.