New syntax for DefaultOrder plugin 2
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
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