class Toller::Sorts::OrderHandler

Order handler for filter

Public Instance Methods

call(collection, direction, properties) click to toggle source
# File lib/toller/sorts/order_handler.rb, line 9
def call(collection, direction, properties)
  field_name = properties[:field]

  collection.order(field_name => direction)
end