Sha256: a669f59d8d0a18a5608876ceaee0edf5c5879d4ec02156158c46dc83a8c00c62

Contents?: true

Size: 221 Bytes

Versions: 21

Compression:

Stored size: 221 Bytes

Contents

module Searchlogic
  class Search
    module Ordering
      # Returns the column we are currently ordering by
      def ordering_by
        order && order.to_s.gsub(/^(ascend|descend)_by_/, '')
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 4 rubygems

Version Path
searchlogic-2.4.26 lib/searchlogic/search/ordering.rb