Sha256: bf4a96c87422b21a096c75c274c1c62d350f6c75deb545260c0121c8191529b9
Contents?: true
Size: 504 Bytes
Versions: 104
Compression:
Stored size: 504 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Validations #:nodoc: # 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
104 entries across 58 versions & 2 rubygems