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