Sha256: c682ba1b3c7f4b9559e661c623c3f4f033956592e5d6edc4cd57b9f5cd1d4de3

Contents?: true

Size: 299 Bytes

Versions: 6

Compression:

Stored size: 299 Bytes

Contents

require 'activemodel-validators/less_or_greater_than_validator'

module ActiveModel
  module Validations
    class LessThanValidator < LessOrGreaterThanValidator
    protected
      def default_operator
        :<
      end

      def allowed_operators
        [:<, :<=]
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
activemodel-validators-3.0.1 lib/activemodel-validators/less_than_validator.rb
activemodel-validators-3.0.0 lib/activemodel-validators/less_than_validator.rb
activemodel-validators-2.0.0 lib/activemodel-validators/less_than_validator.rb
activemodel-validators-1.2.0 lib/activemodel-validators/less_than_validator.rb
activemodel-validators-1.1.0 lib/activemodel-validators/less_than_validator.rb
activemodel-validators-1.0.0 lib/activemodel-validators/less_than_validator.rb