提交 3ae67fbe 编写于 作者: R Rizwan Reza

Add titles to the rest of the files in active_model/validations/*

上级 d896d8fa
module ActiveModel
# == Active Model Exclusion Validator
module Validations
class ExclusionValidator < EachValidator
def check_validity!
......
module ActiveModel
# == Active Model Format Validator
module Validations
class FormatValidator < EachValidator
def validate_each(record, attribute, value)
......
module ActiveModel
# == Active Model Inclusion Validator
module Validations
class InclusionValidator < EachValidator
def check_validity!
......
module ActiveModel
# == Active Model Length Validator
module Validations
class LengthValidator < EachValidator
MESSAGES = { :is => :wrong_length, :minimum => :too_short, :maximum => :too_long }.freeze
......
module ActiveModel
# == Active Model Numericality Validator
module Validations
class NumericalityValidator < EachValidator
CHECKS = { :greater_than => :>, :greater_than_or_equal_to => :>=,
......
require 'active_support/core_ext/object/blank'
module ActiveModel
# == Active Model Presence Validator
module Validations
class PresenceValidator < EachValidator
def validate(record)
......
require 'active_support/core_ext/hash/slice'
module ActiveModel
# == Active Model validates method
module Validations
module ClassMethods
# This method is a shortcut to all default validators and any custom
......
module ActiveModel
# == Active Model validates_with method
module Validations
module HelperMethods
private
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册