module AwesomeSort
Constants
- VERSION
Public Class Methods
add_sorter(model, attribute, sorter)
click to toggle source
# File lib/awesome_sort.rb, line 12 def self.add_sorter(model, attribute, sorter) self.sorters[model] ||= {} self.sorters[model][attribute] = sorter end
configure() { |self| ... }
click to toggle source
# File lib/awesome_sort.rb, line 8 def self.configure yield self end
set_default(model, attribute_or_sorter)
click to toggle source
# File lib/awesome_sort.rb, line 17 def self.set_default(model, attribute_or_sorter) self.defaults[model] = attribute_or_sorter end