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.5.9 lib/searchlogic/search/ordering.rb
searchlogic-2.5.8 lib/searchlogic/search/ordering.rb
searchlogic-2.5.7 lib/searchlogic/search/ordering.rb
searchlogic-2.5.6 lib/searchlogic/search/ordering.rb
searchlogic-2.5.5 lib/searchlogic/search/ordering.rb
searchlogic-2.5.4 lib/searchlogic/search/ordering.rb
searchlogic-2.5.3 lib/searchlogic/search/ordering.rb
searchlogic-2.5.2 lib/searchlogic/search/ordering.rb
searchlogic-2.5.1 lib/searchlogic/search/ordering.rb
searchlogic-2.5.0 lib/searchlogic/search/ordering.rb
searchlogic-2.4.32 lib/searchlogic/search/ordering.rb
searchlogic-2.4.31 lib/searchlogic/search/ordering.rb
searchlogic-2.4.30 lib/searchlogic/search/ordering.rb
searchlogic-2.4.29 lib/searchlogic/search/ordering.rb
searchlogic-2.4.28 lib/searchlogic/search/ordering.rb
nberger-searchlogic-2.4.29 lib/searchlogic/search/ordering.rb
nberger-searchlogic-2.4.28 lib/searchlogic/search/ordering.rb
obitum-searchlogic-2.4.28 lib/searchlogic/search/ordering.rb
searchlogic-2.4.27 lib/searchlogic/search/ordering.rb
yoomee-searchlogic-2.4.27 lib/searchlogic/search/ordering.rb