Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

All AMo modules are safe to defer

  • Loading branch information...
commit f737c2d69bb3659a553c7c0e21e316b1a4a1b98a 1 parent 22752ec
@josh josh authored
View
42 activemodel/lib/active_model.rb
@@ -29,33 +29,29 @@
module ActiveModel
extend ActiveSupport::Autoload
- eager_autoload do
- autoload :AttributeMethods
- autoload :Conversion
- autoload :DeprecatedErrorMethods
- autoload :Dirty
- autoload :Errors
- autoload :Lint
- autoload :Name, 'active_model/naming'
- autoload :Naming
- autoload :Observer, 'active_model/observing'
- autoload :Observing
- autoload :Serialization
- autoload :StateMachine
- autoload :Translation
- autoload :Validations
- autoload :ValidationsRepairHelper
- autoload :Validator
- autoload :VERSION
- end
+ autoload :AttributeMethods
+ autoload :Conversion
+ autoload :DeprecatedErrorMethods
+ autoload :Dirty
+ autoload :Errors
+ autoload :Lint
+ autoload :Name, 'active_model/naming'
+ autoload :Naming
+ autoload :Observer, 'active_model/observing'
+ autoload :Observing
+ autoload :Serialization
+ autoload :StateMachine
+ autoload :Translation
+ autoload :Validations
+ autoload :ValidationsRepairHelper
+ autoload :Validator
+ autoload :VERSION
module Serializers
extend ActiveSupport::Autoload
- eager_autoload do
- autoload :JSON
- autoload :Xml
- end
+ autoload :JSON
+ autoload :Xml
end
end
View
1  activemodel/lib/active_model/validations.rb
@@ -1,5 +1,6 @@
require 'active_support/core_ext/array/extract_options'
require 'active_support/core_ext/hash/keys'
+require 'active_model/errors'
module ActiveModel
module Validations

0 comments on commit f737c2d

Please sign in to comment.
Something went wrong with that request. Please try again.