Sha256: b16a68fe870ddaeaec6e81e4a71052ecd69879fb948af80839d9c1b6eb2d13c2

Contents?: true

Size: 295 Bytes

Versions: 4

Compression:

Stored size: 295 Bytes

Contents

require 'activemodel-validators/less_or_greater_than_validator'

module ActiveModel
  module Validations
    class EqualToValidator < LessOrGreaterThanValidator
    protected
      def default_operator
        :==
      end

      def allowed_operators
        [:==]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activemodel-validators-3.0.1 lib/activemodel-validators/equal_to_validator.rb
activemodel-validators-3.0.0 lib/activemodel-validators/equal_to_validator.rb
activemodel-validators-2.0.0 lib/activemodel-validators/equal_to_validator.rb
activemodel-validators-1.2.0 lib/activemodel-validators/equal_to_validator.rb