diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-22 17:36:29 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-22 17:36:29 -0600 |
commit | 22752ec27c4eeb50ec12ed2f147f1c066062cabd (patch) | |
tree | cfbefc053a6666c2d4ef5c95279cba597f8151bc | |
parent | 2e4e8d156ca1a2f3fe2f587956097621433514f8 (diff) | |
download | rails-22752ec27c4eeb50ec12ed2f147f1c066062cabd.tar.gz rails-22752ec27c4eeb50ec12ed2f147f1c066062cabd.tar.bz2 rails-22752ec27c4eeb50ec12ed2f147f1c066062cabd.zip |
All ARes modules are safe to defer
-rw-r--r-- | activeresource/lib/active_resource.rb | 18 | ||||
-rw-r--r-- | activeresource/lib/active_resource/base.rb | 3 |
2 files changed, 11 insertions, 10 deletions
diff --git a/activeresource/lib/active_resource.rb b/activeresource/lib/active_resource.rb index e0a6ecbcce..3e4a1dd4a1 100644 --- a/activeresource/lib/active_resource.rb +++ b/activeresource/lib/active_resource.rb @@ -33,14 +33,12 @@ require 'active_model' module ActiveResource extend ActiveSupport::Autoload - eager_autoload do - autoload :Base - autoload :Connection - autoload :CustomMethods - autoload :Formats - autoload :HttpMock - autoload :Observing - autoload :Schema - autoload :Validations - end + autoload :Base + autoload :Connection + autoload :CustomMethods + autoload :Formats + autoload :HttpMock + autoload :Observing + autoload :Schema + autoload :Validations end diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb index b833e9c8ce..a6243e7011 100644 --- a/activeresource/lib/active_resource/base.rb +++ b/activeresource/lib/active_resource/base.rb @@ -13,6 +13,9 @@ require 'set' require 'uri' require 'active_resource/exceptions' +require 'active_resource/connection' +require 'active_resource/formats' +require 'active_resource/schema' module ActiveResource # ActiveResource::Base is the main class for mapping RESTful resources as models in a Rails application. |