[ci skip]
This commit is contained in:
Ryuta Kamizono 2017-04-13 07:15:04 +09:00
parent 92ba89dbcc
commit faca40dfd4
7 changed files with 1 additions and 7 deletions

View File

@ -1,4 +1,3 @@
module ActiveModel
module Validations
class FormatValidator < EachValidator # :nodoc:

View File

@ -1,4 +1,3 @@
module ActiveModel
module Validations
class PresenceValidator < EachValidator # :nodoc:

View File

@ -1,4 +1,3 @@
class EmailValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value)
record.errors[attribute] << (options[:message] || "is not an email") unless

View File

@ -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"

View File

@ -1,4 +1,3 @@
module ActiveRecord
module DynamicMatchers #:nodoc:
def respond_to_missing?(name, include_private = false)

View File

@ -1,4 +1,3 @@
require "cases/helper"
module ActiveRecord

View File

@ -1,4 +1,3 @@
require "cases/helper"
require "models/company"
require "models/developer"