Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 47 lines (41 sloc) 1.831 kB
99d268c @dhh Initial check-in of Active Resourse
dhh authored
1 #--
3f36441 @vijaydev Update copyright year in Active Resource and Active Support
vijaydev authored
2 # Copyright (c) 2006-2011 David Heinemeier Hansson
99d268c @dhh Initial check-in of Active Resourse
dhh authored
3 #
4 # Permission is hereby granted, free of charge, to any person obtaining
5 # a copy of this software and associated documentation files (the
6 # "Software"), to deal in the Software without restriction, including
7 # without limitation the rights to use, copy, modify, merge, publish,
8 # distribute, sublicense, and/or sell copies of the Software, and to
9 # permit persons to whom the Software is furnished to do so, subject to
10 # the following conditions:
11 #
12 # The above copyright notice and this permission notice shall be
13 # included in all copies or substantial portions of the Software.
14 #
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 #++
23
7ee5843 @josh Fully expand relative rails framework paths and make sure we aren't
josh authored
24 activesupport_path = File.expand_path('../../../activesupport/lib', __FILE__)
25 $:.unshift(activesupport_path) if File.directory?(activesupport_path) && !$:.include?(activesupport_path)
26
27 activemodel_path = File.expand_path('../../../activemodel/lib', __FILE__)
28 $:.unshift(activemodel_path) if File.directory?(activemodel_path) && !$:.include?(activemodel_path)
99d268c @dhh Initial check-in of Active Resourse
dhh authored
29
7ee5843 @josh Fully expand relative rails framework paths and make sure we aren't
josh authored
30 require 'active_support'
0b694a4 @josh Setup ActiveResource autoloads
josh authored
31 require 'active_model'
c2193c1 @spectator Make sure TimeoutError is loaded.
spectator authored
32 require 'active_resource/exceptions'
cc8e386 @wycats Always pull in version for frameworks (standardize autoload / require…
wycats authored
33 require 'active_resource/version'
8d9e660 @technoweenie Basic validation support [Rick Olson]
technoweenie authored
34
35 module ActiveResource
c130409 Reorganize autoloads:
Carlhuda authored
36 extend ActiveSupport::Autoload
37
38 autoload :Base
39 autoload :Connection
40 autoload :CustomMethods
41 autoload :Formats
669c5ee @josh Rename SchemaDefinition => Schema
josh authored
42 autoload :HttpMock
c130409 Reorganize autoloads:
Carlhuda authored
43 autoload :Observing
669c5ee @josh Rename SchemaDefinition => Schema
josh authored
44 autoload :Schema
c130409 Reorganize autoloads:
Carlhuda authored
45 autoload :Validations
172606e @jeremy Harmonize framework require strategy. Don't add self to load path sin…
jeremy authored
46 end
Something went wrong with that request. Please try again.