~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/actionpack/lib/action_controller.rb

  • Committer: Richard Lee (Canonical)
  • Date: 2010-10-15 15:17:58 UTC
  • mfrom: (190.1.3 use-case-mapper)
  • Revision ID: richard.lee@canonical.com-20101015151758-wcvmfxrexsongf9d
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#--
2
 
# Copyright (c) 2004-2009 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
 
gem 'rack', '~> 1.0.1'
35
 
require 'rack'
36
 
require 'action_controller/cgi_ext'
37
 
 
38
 
module ActionController
39
 
  # TODO: Review explicit to see if they will automatically be handled by
40
 
  # the initilizer if they are really needed.
41
 
  def self.load_all!
42
 
    [Base, CGIHandler, CgiRequest, Request, Response, Http::Headers, UrlRewriter, UrlWriter]
43
 
  end
44
 
 
45
 
  autoload :Base, 'action_controller/base'
46
 
  autoload :Benchmarking, 'action_controller/benchmarking'
47
 
  autoload :Caching, 'action_controller/caching'
48
 
  autoload :Cookies, 'action_controller/cookies'
49
 
  autoload :Dispatcher, 'action_controller/dispatcher'
50
 
  autoload :Failsafe, 'action_controller/failsafe'
51
 
  autoload :Filters, 'action_controller/filters'
52
 
  autoload :Flash, 'action_controller/flash'
53
 
  autoload :Helpers, 'action_controller/helpers'
54
 
  autoload :HttpAuthentication, 'action_controller/http_authentication'
55
 
  autoload :Integration, 'action_controller/integration'
56
 
  autoload :IntegrationTest, 'action_controller/integration'
57
 
  autoload :Layout, 'action_controller/layout'
58
 
  autoload :MiddlewareStack, 'action_controller/middleware_stack'
59
 
  autoload :MimeResponds, 'action_controller/mime_responds'
60
 
  autoload :ParamsParser, 'action_controller/params_parser'
61
 
  autoload :PolymorphicRoutes, 'action_controller/polymorphic_routes'
62
 
  autoload :RecordIdentifier, 'action_controller/record_identifier'
63
 
  autoload :Reloader, 'action_controller/reloader'
64
 
  autoload :Request, 'action_controller/request'
65
 
  autoload :RequestForgeryProtection, 'action_controller/request_forgery_protection'
66
 
  autoload :Rescue, 'action_controller/rescue'
67
 
  autoload :Resources, 'action_controller/resources'
68
 
  autoload :Response, 'action_controller/response'
69
 
  autoload :RewindableInput, 'action_controller/rewindable_input'
70
 
  autoload :Routing, 'action_controller/routing'
71
 
  autoload :SessionManagement, 'action_controller/session_management'
72
 
  autoload :StatusCodes, 'action_controller/status_codes'
73
 
  autoload :Streaming, 'action_controller/streaming'
74
 
  autoload :StringCoercion, 'action_controller/string_coercion'
75
 
  autoload :TestCase, 'action_controller/test_case'
76
 
  autoload :TestProcess, 'action_controller/test_process'
77
 
  autoload :Translation, 'action_controller/translation'
78
 
  autoload :UploadedFile, 'action_controller/uploaded_file'
79
 
  autoload :UploadedStringIO, 'action_controller/uploaded_file'
80
 
  autoload :UploadedTempfile, 'action_controller/uploaded_file'
81
 
  autoload :UrlRewriter, 'action_controller/url_rewriter'
82
 
  autoload :UrlWriter, 'action_controller/url_rewriter'
83
 
  autoload :Verification, 'action_controller/verification'
84
 
 
85
 
  module Assertions
86
 
    autoload :DomAssertions, 'action_controller/assertions/dom_assertions'
87
 
    autoload :ModelAssertions, 'action_controller/assertions/model_assertions'
88
 
    autoload :ResponseAssertions, 'action_controller/assertions/response_assertions'
89
 
    autoload :RoutingAssertions, 'action_controller/assertions/routing_assertions'
90
 
    autoload :SelectorAssertions, 'action_controller/assertions/selector_assertions'
91
 
    autoload :TagAssertions, 'action_controller/assertions/tag_assertions'
92
 
  end
93
 
 
94
 
  module Http
95
 
    autoload :Headers, 'action_controller/headers'
96
 
  end
97
 
 
98
 
  module Session
99
 
    autoload :AbstractStore, 'action_controller/session/abstract_store'
100
 
    autoload :CookieStore, 'action_controller/session/cookie_store'
101
 
    autoload :MemCacheStore, 'action_controller/session/mem_cache_store'
102
 
  end
103
 
 
104
 
  # DEPRECATE: Remove CGI support
105
 
  autoload :CgiRequest, 'action_controller/cgi_process'
106
 
  autoload :CGIHandler, 'action_controller/cgi_process'
107
 
end
108
 
 
109
 
autoload :Mime, 'action_controller/mime_type'
110
 
 
111
 
autoload :HTML, 'action_controller/vendor/html-scanner'
112
 
 
113
 
require 'action_view'