Hi, all How can I set a default order in a model.rb?
For an instance, I have a model called “Bulletin” I want all query with ‘find’ method return records by ordered.
Bulletin.all #=> Same as: Bulletin.find(:all, {:order => "publish_at DESC"})
Should I write a method to do that? Or I can set something in the bulletin model?
Thanks!