Sha256: be3669cf5077f5c76ceb94429516b8a5b10e882be4b64de5966544d60cc4ee98

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

module FilterParam
  module Operators
    class LessThan < FieldFilterOperator
      operator_tag :lt
      operand_data_type :string, :integer, :decimal, :date, :datetime

      def self.sql(field, literal)
        super

        "#{field.actual_name} < #{sql_quote(literal.value)}"
      end
    end
  end
end

FilterParam::Operator.register(FilterParam::Operators::LessThan)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
filter_param-0.1.2 lib/filter_param/operators/less_than.rb