aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-12-22 17:36:29 -0600
committerJoshua Peek <josh@joshpeek.com>2009-12-22 17:36:29 -0600
commit22752ec27c4eeb50ec12ed2f147f1c066062cabd (patch)
treecfbefc053a6666c2d4ef5c95279cba597f8151bc
parent2e4e8d156ca1a2f3fe2f587956097621433514f8 (diff)
downloadrails-22752ec27c4eeb50ec12ed2f147f1c066062cabd.tar.gz
rails-22752ec27c4eeb50ec12ed2f147f1c066062cabd.tar.bz2
rails-22752ec27c4eeb50ec12ed2f147f1c066062cabd.zip
All ARes modules are safe to defer
-rw-r--r--activeresource/lib/active_resource.rb18
-rw-r--r--activeresource/lib/active_resource/base.rb3
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.