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.