Module: Searchlogic::Search::Ordering

Included in:
Searchlogic::Search
Defined in:
lib/searchlogic/search/ordering.rb

Instance Method Summary collapse

Instance Method Details

#ordering_byObject

Returns the column we are currently ordering by



5
6
7
# File 'lib/searchlogic/search/ordering.rb', line 5

def ordering_by
  order && order.to_s.gsub(/^(ascend|descend)_by_/, '')
end