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

- (Object) valid_sort_fields



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

def valid_sort_fields
  @valid_sort_fields
end

- (Object) valid_sort_fields=(value)



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

def valid_sort_fields=(value)
  @valid_sort_fields = value
end