Sha256: b728b356c789ffd54fd8489303e9648673505fce7186d8ded140591afb4ef5a9
Contents?: true
Size: 376 Bytes
Versions: 1
Compression:
Stored size: 376 Bytes
Contents
module Searchlogic class Search module Ordering # Returns the column we are currently ordering by def ordering_by @ordering_by ||= order && order.to_s.gsub(/^(ascend|descend)_by_/, '') end def ordering_direction @ordering_direction ||= order && order.to_s.match(/^(ascend|descend)_by_ass/).try(:[], 1) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
searchlogic-2.5.10 | lib/searchlogic/search/ordering.rb |