Froze rails gems
[depot.git] / vendor / rails / actionpack / lib / action_controller.rb
1 #--
2 # Copyright (c) 2004-2008 David Heinemeier Hansson
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
24 begin
25 require 'active_support'
26 rescue LoadError
27 activesupport_path = "#{File.dirname(__FILE__)}/../../activesupport/lib"
28 if File.directory?(activesupport_path)
29 $:.unshift activesupport_path
30 require 'active_support'
31 end
32 end
33
34 $:.unshift "#{File.dirname(__FILE__)}/action_controller/vendor/html-scanner"
35
36 require 'action_controller/base'
37 require 'action_controller/request'
38 require 'action_controller/rescue'
39 require 'action_controller/benchmarking'
40 require 'action_controller/flash'
41 require 'action_controller/filters'
42 require 'action_controller/layout'
43 require 'action_controller/mime_responds'
44 require 'action_controller/helpers'
45 require 'action_controller/cookies'
46 require 'action_controller/cgi_process'
47 require 'action_controller/caching'
48 require 'action_controller/verification'
49 require 'action_controller/streaming'
50 require 'action_controller/session_management'
51 require 'action_controller/http_authentication'
52 require 'action_controller/components'
53 require 'action_controller/rack_process'
54 require 'action_controller/record_identifier'
55 require 'action_controller/request_forgery_protection'
56 require 'action_controller/headers'
57 require 'action_controller/translation'
58
59 require 'action_view'
60
61 ActionController::Base.class_eval do
62 include ActionController::Flash
63 include ActionController::Filters
64 include ActionController::Layout
65 include ActionController::Benchmarking
66 include ActionController::Rescue
67 include ActionController::MimeResponds
68 include ActionController::Helpers
69 include ActionController::Cookies
70 include ActionController::Caching
71 include ActionController::Verification
72 include ActionController::Streaming
73 include ActionController::SessionManagement
74 include ActionController::HttpAuthentication::Basic::ControllerMethods
75 include ActionController::Components
76 include ActionController::RecordIdentifier
77 include ActionController::RequestForgeryProtection
78 include ActionController::Translation
79 end