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
|
module ActiveModel
|
||||||
class Errors < Hash
|
class Errors < Hash
|
||||||
include DeprecatedErrorMethods
|
include DeprecatedErrorMethods
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
require 'active_support/core_ext/array/extract_options'
|
||||||
|
require 'active_support/core_ext/hash/keys'
|
||||||
|
|
||||||
module ActiveModel
|
module ActiveModel
|
||||||
module Validations
|
module Validations
|
||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
|
@ -69,7 +72,6 @@ module ActiveModel
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def validation_method(on)
|
def validation_method(on)
|
||||||
:validate
|
:validate
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
require 'active_support/core_ext/object/blank'
|
||||||
|
|
||||||
module ActiveModel
|
module ActiveModel
|
||||||
module Validations
|
module Validations
|
||||||
module ClassMethods
|
module ClassMethods
|
||||||
|
|
Loading…
Reference in a new issue