Sha256: c6408106169c89354cdcd9c12aa11977de22b43b3adc1f038399e3665ab3cbc0

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

module FilterParam
  module Operators
    class LessThanEqual < FieldFilterOperator
      operator_tag :le
      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::LessThanEqual)

Version data entries

1 entries across 1 versions & 1 rubygems

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