diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-22 17:27:37 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-22 17:27:37 -0600 |
commit | ace20bd25e3818b7f29c222643dd445c48b36425 (patch) | |
tree | d8bdc5e685f6d4e56e7f6c6e1f0a27fdad8b20ed /activemodel/lib | |
parent | b1aee9f4eebdae4fad38572359649c097c731b77 (diff) | |
download | rails-ace20bd25e3818b7f29c222643dd445c48b36425.tar.gz rails-ace20bd25e3818b7f29c222643dd445c48b36425.tar.bz2 rails-ace20bd25e3818b7f29c222643dd445c48b36425.zip |
Flip deferrable autoload convention
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model.rb | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/activemodel/lib/active_model.rb b/activemodel/lib/active_model.rb index e0de27b96d..46caa53219 100644 --- a/activemodel/lib/active_model.rb +++ b/activemodel/lib/active_model.rb @@ -29,29 +29,33 @@ require 'active_support' module ActiveModel extend ActiveSupport::Autoload - 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 + 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 module Serializers extend ActiveSupport::Autoload - autoload :JSON - autoload :Xml + eager_autoload do + autoload :JSON + autoload :Xml + end end end |