New syntax for DefaultOrder plugin 2

Posted by Antonin AMAND Mon, 15 Oct 2007 13:51:00 GMT

I’ve updated the DefaultOrder plugin that now have a new syntax.


class Contact < ActiveRecord::Base 

 order_by :fields => ['last_name', 'first_name'], :mode => :desc

end

More details.

Comments

Leave a comment

  1. Hique 3 months later:

    Does this plugin work with find_by dynamic finders? checkout here: http://www.railsforum.com/viewtopic.php?id=682

  2. Anny 4 months later:

    I have read your for blog one years and found that it is really helpful.

Comments