module Mincer::Processors::Sorting::Options

Public Instance Methods

allowed_sort_attributes() click to toggle source

Allowed sort attributes, should return array of strings

# File lib/mincer/processors/sorting/processor.rb, line 77
def allowed_sort_attributes
  @scope.attribute_names
end
default_sort_attribute() click to toggle source

Default sort attribute. You must override this method if you want something else

# File lib/mincer/processors/sorting/processor.rb, line 67
def default_sort_attribute
  ::Mincer.config.sorting.sort_attribute
end
default_sort_order() click to toggle source

Default order attribute. You must override this method if you want something else

# File lib/mincer/processors/sorting/processor.rb, line 72
def default_sort_order
  ::Mincer.config.sorting.order_attribute
end