Sha256: 13610f2b76d029079fa4ceafa1209ad8a68b598c50ce66076c8e116be0f532e5

Contents?: true

Size: 517 Bytes

Versions: 27

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

module Mongoid
  module Validatable

    # Validates that the specified attributes do or do not match a certain
    # regular expression.
    #
    # @example Set up the format validator.
    #
    #   class Person
    #     include Mongoid::Document
    #     field :website
    #
    #     validates_format_of :website, :with => URI.regexp
    #   end
    class FormatValidator < ActiveModel::Validations::FormatValidator
      include Localizable
    end
  end
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
mongoid-7.3.5 lib/mongoid/validatable/format.rb
mongoid-7.3.4 lib/mongoid/validatable/format.rb
mongoid-7.1.11 lib/mongoid/validatable/format.rb
mongoid-7.2.6 lib/mongoid/validatable/format.rb
mongoid-7.3.3 lib/mongoid/validatable/format.rb
mongoid-7.3.2 lib/mongoid/validatable/format.rb
mongoid-7.2.5 lib/mongoid/validatable/format.rb
mongoid-7.1.10 lib/mongoid/validatable/format.rb
mongoid-7.1.9 lib/mongoid/validatable/format.rb
mongoid-7.2.4 lib/mongoid/validatable/format.rb
mongoid-7.3.1 lib/mongoid/validatable/format.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/mongoid-7.1.7/lib/mongoid/validatable/format.rb
mongoid-7.3.0 lib/mongoid/validatable/format.rb
mongoid-7.2.3 lib/mongoid/validatable/format.rb
mongoid-7.1.8 lib/mongoid/validatable/format.rb
mongoid-7.2.2 lib/mongoid/validatable/format.rb
mongoid-7.2.1 lib/mongoid/validatable/format.rb
mongoid-7.1.7 lib/mongoid/validatable/format.rb
mongoid-7.2.0 lib/mongoid/validatable/format.rb
mongoid-7.1.6 lib/mongoid/validatable/format.rb