Sha256: cae7d3008a08ab094794944a6d2792a52e2c7cd295b39a4a12c876d21db069ec

Contents?: true

Size: 281 Bytes

Versions: 12

Compression:

Stored size: 281 Bytes

Contents

module Searchgasm
  module Condition
    class LessThan < Base
      class << self
        def condition_names_for_column
          super + ["lt", "before"]
        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/less_than.rb
searchgasm-1.3.3 lib/searchgasm/condition/less_than.rb
searchgasm-1.3.1 lib/searchgasm/condition/less_than.rb
searchgasm-1.3.0 lib/searchgasm/condition/less_than.rb
searchgasm-1.3.2 lib/searchgasm/condition/less_than.rb
searchgasm-1.5.0 lib/searchgasm/condition/less_than.rb
searchgasm-1.5.1 lib/searchgasm/condition/less_than.rb
searchgasm-1.5.2 lib/searchgasm/condition/less_than.rb
searchgasm-1.4.1 lib/searchgasm/condition/less_than.rb
searchgasm-1.4.0 lib/searchgasm/condition/less_than.rb
searchgasm-1.3.5 lib/searchgasm/condition/less_than.rb
searchgasm-1.5.3 lib/searchgasm/condition/less_than.rb