Sha256: f0fc4c87f1b4f8910cbb40c035a0df07af4497429ece678f28352f9ae0ec5a1e
Contents?: true
Size: 464 Bytes
Versions: 73
Compression:
Stored size: 464 Bytes
Contents
# encoding: utf-8 module Mongoid module Validatable # Validates that the specified attributes do or do not match a certain # length. # # @example Set up the length validator. # # class Person # include Mongoid::Document # field :website # # validates_length_of :website, in: 1..10 # end class LengthValidator < ActiveModel::Validations::LengthValidator include Localizable end end end
Version data entries
73 entries across 68 versions & 6 rubygems