Sha256: d6fbe2b90341e14dd22f794d990cf585652e5e8a5dc7ee109354a394c2840508
Contents?: true
Size: 499 Bytes
Versions: 29
Compression:
Stored size: 499 Bytes
Contents
# frozen_string_literal: true 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
29 entries across 29 versions & 1 rubygems