mirror of https://github.com/rails/rails
parent
92ba89dbcc
commit
faca40dfd4
|
@ -1,4 +1,3 @@
|
|||
|
||||
module ActiveModel
|
||||
module Validations
|
||||
class FormatValidator < EachValidator # :nodoc:
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module ActiveModel
|
||||
module Validations
|
||||
class PresenceValidator < EachValidator # :nodoc:
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
class EmailValidator < ActiveModel::EachValidator
|
||||
def validate_each(record, attribute, value)
|
||||
record.errors[attribute] << (options[:message] || "is not an email") unless
|
||||
|
|
|
@ -1649,7 +1649,7 @@ module ActiveRecord
|
|||
# you don't want to have association presence validated, use <tt>optional: true</tt>.
|
||||
# [:default]
|
||||
# Provide a callable (i.e. proc or lambda) to specify that the association should
|
||||
# be initialized with a particular record before validation.
|
||||
# be initialized with a particular record before validation.
|
||||
#
|
||||
# Option examples:
|
||||
# belongs_to :firm, foreign_key: "client_of"
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
module ActiveRecord
|
||||
module DynamicMatchers #:nodoc:
|
||||
def respond_to_missing?(name, include_private = false)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require "cases/helper"
|
||||
|
||||
module ActiveRecord
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
require "cases/helper"
|
||||
require "models/company"
|
||||
require "models/developer"
|
||||
|
|
Loading…
Reference in New Issue