module Sortable::Model
Public Instance Methods
sortable(*args)
click to toggle source
# File lib/sortable.rb, line 9 def sortable(*args) @sortable ||= [] @sortable << args unless args.empty? @sortable end
sorting(column, direction = :asc, *args)
click to toggle source
# File lib/sortable.rb, line 15 def sorting(column, direction = :asc, *args) Sortable::Sort.new(self, column, direction, *args).all end