Sha256: 52393d72499fd780da477d26ed1993f0ba4e3b6b13f0ead204d5e23ccf89e5cd

Contents?: true

Size: 306 Bytes

Versions: 12

Compression:

Stored size: 306 Bytes

Contents

module Searchgasm
  module Condition
    class GreaterThanOrEqualTo < Base
      class << self
        def condition_names_for_column
          super + ["gte", "at_least", "least"]
        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.4 lib/searchgasm/condition/greater_than_or_equal_to.rb
searchgasm-1.3.1 lib/searchgasm/condition/greater_than_or_equal_to.rb
searchgasm-1.3.0 lib/searchgasm/condition/greater_than_or_equal_to.rb
searchgasm-1.3.3 lib/searchgasm/condition/greater_than_or_equal_to.rb
searchgasm-1.3.2 lib/searchgasm/condition/greater_than_or_equal_to.rb
searchgasm-1.4.0 lib/searchgasm/condition/greater_than_or_equal_to.rb
searchgasm-1.5.1 lib/searchgasm/condition/greater_than_or_equal_to.rb
searchgasm-1.5.3 lib/searchgasm/condition/greater_than_or_equal_to.rb
searchgasm-1.5.2 lib/searchgasm/condition/greater_than_or_equal_to.rb
searchgasm-1.4.1 lib/searchgasm/condition/greater_than_or_equal_to.rb
searchgasm-1.3.5 lib/searchgasm/condition/greater_than_or_equal_to.rb
searchgasm-1.5.0 lib/searchgasm/condition/greater_than_or_equal_to.rb