1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

All ARes modules are safe to defer

This commit is contained in:
Joshua Peek 2009-12-22 17:36:29 -06:00
parent 2e4e8d156c
commit 22752ec27c
2 changed files with 11 additions and 10 deletions

View file

@ -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

View file

@ -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.