Module: Mincer::Processors::Sorting::Options
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/mincer/processors/sorting/processor.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#allowed_sort_attributes ⇒ Object
Allowed sort attributes, should return array of strings.
-
#default_sort_attribute ⇒ Object
Default sort attribute.
-
#default_sort_order ⇒ Object
Default order attribute.
Instance Method Details
#allowed_sort_attributes ⇒ Object
Allowed sort attributes, should return array of strings
77 78 79 |
# File 'lib/mincer/processors/sorting/processor.rb', line 77 def allowed_sort_attributes @scope.attribute_names end |