Sha256: 142c2895ea2dd3b0eef9f78206192d04354de3526ca83855c07af21fb7b6228d

Contents?: true

Size: 283 Bytes

Versions: 12

Compression:

Stored size: 283 Bytes

Contents

module Searchgasm
  module Condition
    class GreaterThan < Base
      class << self
        def condition_names_for_column
          super + ["gt", "after"]
        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.3 lib/searchgasm/condition/greater_than.rb
searchgasm-1.3.1 lib/searchgasm/condition/greater_than.rb
searchgasm-1.3.4 lib/searchgasm/condition/greater_than.rb
searchgasm-1.3.2 lib/searchgasm/condition/greater_than.rb
searchgasm-1.3.0 lib/searchgasm/condition/greater_than.rb
searchgasm-1.5.1 lib/searchgasm/condition/greater_than.rb
searchgasm-1.5.0 lib/searchgasm/condition/greater_than.rb
searchgasm-1.5.3 lib/searchgasm/condition/greater_than.rb
searchgasm-1.3.5 lib/searchgasm/condition/greater_than.rb
searchgasm-1.4.1 lib/searchgasm/condition/greater_than.rb
searchgasm-1.5.2 lib/searchgasm/condition/greater_than.rb
searchgasm-1.4.0 lib/searchgasm/condition/greater_than.rb