Sha256: d90e13d658cc0f3f4f88fa21989a11978b550dd4d9f09c3ecac4f9442183606a

Contents?: true

Size: 301 Bytes

Versions: 12

Compression:

Stored size: 301 Bytes

Contents

module Searchgasm
  module Condition
    class LessThanOrEqualTo < Base
      class << self
        def condition_names_for_column
          super + ["lte", "at_most", "most"]
        end
      end
      
      def to_conditions(value)
        ["#{column_sql} <= ?", value]
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
searchgasm-1.3.2 lib/searchgasm/condition/less_than_or_equal_to.rb
searchgasm-1.3.3 lib/searchgasm/condition/less_than_or_equal_to.rb
searchgasm-1.3.4 lib/searchgasm/condition/less_than_or_equal_to.rb
searchgasm-1.3.1 lib/searchgasm/condition/less_than_or_equal_to.rb
searchgasm-1.3.0 lib/searchgasm/condition/less_than_or_equal_to.rb
searchgasm-1.5.1 lib/searchgasm/condition/less_than_or_equal_to.rb
searchgasm-1.4.1 lib/searchgasm/condition/less_than_or_equal_to.rb
searchgasm-1.5.2 lib/searchgasm/condition/less_than_or_equal_to.rb
searchgasm-1.3.5 lib/searchgasm/condition/less_than_or_equal_to.rb
searchgasm-1.5.3 lib/searchgasm/condition/less_than_or_equal_to.rb
searchgasm-1.4.0 lib/searchgasm/condition/less_than_or_equal_to.rb
searchgasm-1.5.0 lib/searchgasm/condition/less_than_or_equal_to.rb