Sha256: 280106c7645085e8ff3f4d6f3e116c4fba94f1c2ae5f272f5d54a48bef76fcf2
Contents?: true
Size: 495 Bytes
Versions: 27
Compression:
Stored size: 495 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 # 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
27 entries across 27 versions & 2 rubygems