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

Version Path
classiccms-0.7.5 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/validations/length.rb
classiccms-0.7.5 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/validations/length.rb
classiccms-0.7.4 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/validations/length.rb
classiccms-0.7.4 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/validations/length.rb
classiccms-0.7.3 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/validations/length.rb
classiccms-0.7.3 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/validations/length.rb
mongoid-3.1.7 lib/mongoid/validations/length.rb
mongoid-3.1.6 lib/mongoid/validations/length.rb
mongoid-3.1.5 lib/mongoid/validations/length.rb
mongoid-2.8.1 lib/mongoid/validations/length.rb
mongoid-2.8.0 lib/mongoid/validations/length.rb
classiccms-0.7.2 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/validations/length.rb
classiccms-0.7.2 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/validations/length.rb
classiccms-0.7.1 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/validations/length.rb
classiccms-0.7.1 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/validations/length.rb
classiccms-0.7.0 vendor/bundle/gems/mongoid-2.4.10/lib/mongoid/validations/length.rb
classiccms-0.7.0 vendor/bundle/gems/mongoid-2.4.9/lib/mongoid/validations/length.rb
mongoid-3.1.4 lib/mongoid/validations/length.rb
mongoid-3.1.3 lib/mongoid/validations/length.rb
mongoid-2.7.1 lib/mongoid/validations/length.rb