Module: Searchlogic::Search::Ordering
- Included in:
- Searchlogic::Search
- Defined in:
- lib/searchlogic/search/ordering.rb
Instance Method Summary collapse
-
#ordering_by ⇒ Object
Returns the column we are currently ordering by.
Instance Method Details
#ordering_by ⇒ Object
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 |