Module: SortOrder::ClassMethods

Defined in:
lib/sort_order.rb

Overview

This provides a getter and setter for the class-wide valid_sort_fields accessor. You can specify

Instance Method Summary collapse

Instance Method Details

#valid_sort_fieldsObject



43
44
45
# File 'lib/sort_order.rb', line 43

def valid_sort_fields
  @valid_sort_fields
end

#valid_sort_fields=(value) ⇒ Object



40
41
42
# File 'lib/sort_order.rb', line 40

def valid_sort_fields=(value)
  @valid_sort_fields = value
end