Sha256: da31a9a89625f0177e777311f81d9ddb127b510ec3dbdb874ed7492c12a56095
Contents?: true
Size: 464 Bytes
Versions: 136
Compression:
Stored size: 464 Bytes
Contents
# encoding: utf-8 module Mongoid module Validations # 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
136 entries across 90 versions & 3 rubygems