Sha256: d5440e6bde575403692a37b6b475a72101f49a8c1cbe0acd0782f6b64fd0b2fd
Contents?: true
Size: 486 Bytes
Versions: 73
Compression:
Stored size: 486 Bytes
Contents
# 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
73 entries across 68 versions & 6 rubygems