mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Properly require ActiveModel validation dependencies
This commit is contained in:
parent
01515f8ecd
commit
28f36279cd
11 changed files with 35 additions and 29 deletions
|
@ -1,3 +1,5 @@
|
|||
require 'active_support/core_ext/string/inflections'
|
||||
|
||||
module ActiveModel
|
||||
class Errors < Hash
|
||||
include DeprecatedErrorMethods
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
require 'active_support/core_ext/array/extract_options'
|
||||
require 'active_support/core_ext/hash/keys'
|
||||
|
||||
module ActiveModel
|
||||
module Validations
|
||||
extend ActiveSupport::Concern
|
||||
|
@ -69,7 +72,6 @@ module ActiveModel
|
|||
end
|
||||
|
||||
private
|
||||
|
||||
def validation_method(on)
|
||||
:validate
|
||||
end
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
require 'active_support/core_ext/object/blank'
|
||||
|
||||
module ActiveModel
|
||||
module Validations
|
||||
module ClassMethods
|
||||
|
|
Loading…
Reference in a new issue