Sha256: 10bdad1a11bdfe34ede99b88e537c0b43746983c7c34e12b460d928e9a127674

Contents?: true

Size: 302 Bytes

Versions: 6

Compression:

Stored size: 302 Bytes

Contents

require 'activemodel-validators/less_or_greater_than_validator'

module ActiveModel
  module Validations
    class GreaterThanValidator < 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/greater_than_validator.rb
activemodel-validators-3.0.0 lib/activemodel-validators/greater_than_validator.rb
activemodel-validators-2.0.0 lib/activemodel-validators/greater_than_validator.rb
activemodel-validators-1.2.0 lib/activemodel-validators/greater_than_validator.rb
activemodel-validators-1.1.0 lib/activemodel-validators/greater_than_validator.rb
activemodel-validators-1.0.0 lib/activemodel-validators/greater_than_validator.rb