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