2006-06-25 10:44:22 -04:00
|
|
|
#--
|
|
|
|
# Copyright (c) 2006 David Heinemeier Hansson
|
|
|
|
#
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining
|
|
|
|
# a copy of this software and associated documentation files (the
|
|
|
|
# "Software"), to deal in the Software without restriction, including
|
|
|
|
# without limitation the rights to use, copy, modify, merge, publish,
|
|
|
|
# distribute, sublicense, and/or sell copies of the Software, and to
|
|
|
|
# permit persons to whom the Software is furnished to do so, subject to
|
|
|
|
# the following conditions:
|
|
|
|
#
|
|
|
|
# The above copyright notice and this permission notice shall be
|
|
|
|
# included in all copies or substantial portions of the Software.
|
|
|
|
#
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
|
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
|
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
|
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
|
|
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
#++
|
|
|
|
|
2009-12-16 12:56:51 -05:00
|
|
|
activesupport_path = File.expand_path('../../../activesupport/lib', __FILE__)
|
|
|
|
$:.unshift(activesupport_path) if File.directory?(activesupport_path) && !$:.include?(activesupport_path)
|
|
|
|
|
|
|
|
activemodel_path = File.expand_path('../../../activemodel/lib', __FILE__)
|
|
|
|
$:.unshift(activemodel_path) if File.directory?(activemodel_path) && !$:.include?(activemodel_path)
|
2006-06-25 10:44:22 -04:00
|
|
|
|
2009-12-16 12:56:51 -05:00
|
|
|
require 'active_support'
|
2009-06-08 21:48:14 -04:00
|
|
|
require 'active_model'
|
2006-09-07 20:07:30 -04:00
|
|
|
|
|
|
|
module ActiveResource
|
2009-12-02 23:01:01 -05:00
|
|
|
extend ActiveSupport::Autoload
|
|
|
|
|
|
|
|
autoload :Base
|
|
|
|
autoload :Connection
|
|
|
|
autoload :CustomMethods
|
|
|
|
autoload :Formats
|
2009-12-20 19:44:13 -05:00
|
|
|
autoload :HttpMock
|
2009-12-02 23:01:01 -05:00
|
|
|
autoload :Observing
|
2009-12-20 19:44:13 -05:00
|
|
|
autoload :Schema
|
2009-12-02 23:01:01 -05:00
|
|
|
autoload :Validations
|
2008-08-26 00:22:34 -04:00
|
|
|
end
|