2004-11-23 20:04:44 -05:00
|
|
|
#--
|
2009-01-18 00:28:21 -05:00
|
|
|
# Copyright (c) 2004-2009 David Heinemeier Hansson
|
2004-11-23 20:04:44 -05:00
|
|
|
#
|
|
|
|
# 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-05-13 04:10:37 -04:00
|
|
|
activesupport_path = "#{File.dirname(__FILE__)}/../../activesupport/lib"
|
|
|
|
$:.unshift activesupport_path if File.directory?(activesupport_path)
|
|
|
|
require 'active_support'
|
2004-11-23 20:04:44 -05:00
|
|
|
|
2009-01-22 17:18:10 -05:00
|
|
|
require File.join(File.dirname(__FILE__), "action_pack")
|
|
|
|
|
2008-11-23 17:35:13 -05:00
|
|
|
module ActionController
|
|
|
|
# TODO: Review explicit to see if they will automatically be handled by
|
|
|
|
# the initilizer if they are really needed.
|
|
|
|
def self.load_all!
|
2009-01-27 19:54:01 -05:00
|
|
|
[Base, Request, Response, UrlRewriter, UrlWriter]
|
|
|
|
[ActionDispatch::Http::Headers]
|
2008-11-23 17:35:13 -05:00
|
|
|
end
|
2005-02-19 15:29:55 -05:00
|
|
|
|
2009-01-27 19:17:39 -05:00
|
|
|
autoload :Base, 'action_controller/base/base'
|
|
|
|
autoload :Benchmarking, 'action_controller/base/chained/benchmarking'
|
2008-11-23 17:35:13 -05:00
|
|
|
autoload :Caching, 'action_controller/caching'
|
2009-01-27 19:17:39 -05:00
|
|
|
autoload :Cookies, 'action_controller/base/cookies'
|
|
|
|
autoload :Dispatcher, 'action_controller/dispatch/dispatcher'
|
|
|
|
autoload :Filters, 'action_controller/base/chained/filters'
|
|
|
|
autoload :Flash, 'action_controller/base/chained/flash'
|
|
|
|
autoload :Helpers, 'action_controller/base/helpers'
|
|
|
|
autoload :HttpAuthentication, 'action_controller/base/http_authentication'
|
|
|
|
autoload :Integration, 'action_controller/testing/integration'
|
|
|
|
autoload :IntegrationTest, 'action_controller/testing/integration'
|
|
|
|
autoload :Layout, 'action_controller/base/layout'
|
2009-04-14 18:08:38 -04:00
|
|
|
autoload :MimeResponds, 'action_controller/base/mime_responds'
|
2009-01-27 19:17:39 -05:00
|
|
|
autoload :PolymorphicRoutes, 'action_controller/routing/generation/polymorphic_routes'
|
2008-11-23 17:35:13 -05:00
|
|
|
autoload :RecordIdentifier, 'action_controller/record_identifier'
|
2009-01-27 19:17:39 -05:00
|
|
|
autoload :Redirector, 'action_controller/base/redirect'
|
|
|
|
autoload :Renderer, 'action_controller/base/render'
|
|
|
|
autoload :RequestForgeryProtection, 'action_controller/base/request_forgery_protection'
|
2009-05-03 00:02:22 -04:00
|
|
|
autoload :Rescue, 'action_controller/base/rescue'
|
2009-01-27 19:17:39 -05:00
|
|
|
autoload :Resources, 'action_controller/routing/resources'
|
|
|
|
autoload :Responder, 'action_controller/base/responder'
|
2008-11-23 17:35:13 -05:00
|
|
|
autoload :Routing, 'action_controller/routing'
|
2009-04-14 18:02:38 -04:00
|
|
|
autoload :SessionManagement, 'action_controller/base/session_management'
|
2009-01-27 19:17:39 -05:00
|
|
|
autoload :Streaming, 'action_controller/base/streaming'
|
|
|
|
autoload :TestCase, 'action_controller/testing/test_case'
|
|
|
|
autoload :TestProcess, 'action_controller/testing/process'
|
2008-11-23 17:35:13 -05:00
|
|
|
autoload :Translation, 'action_controller/translation'
|
2009-01-27 19:17:39 -05:00
|
|
|
autoload :UrlEncodedPairParser, 'action_controller/dispatch/url_encoded_pair_parser'
|
|
|
|
autoload :UrlRewriter, 'action_controller/routing/generation/url_rewriter'
|
|
|
|
autoload :UrlWriter, 'action_controller/routing/generation/url_rewriter'
|
|
|
|
autoload :Verification, 'action_controller/base/verification'
|
2009-05-22 13:51:11 -04:00
|
|
|
autoload :FilterParameterLogging, 'action_controller/base/filter_parameter_logging'
|
2004-11-23 20:04:44 -05:00
|
|
|
|
2008-11-24 10:58:52 -05:00
|
|
|
module Assertions
|
2009-01-27 19:17:39 -05:00
|
|
|
autoload :DomAssertions, 'action_controller/testing/assertions/dom'
|
|
|
|
autoload :ModelAssertions, 'action_controller/testing/assertions/model'
|
|
|
|
autoload :ResponseAssertions, 'action_controller/testing/assertions/response'
|
|
|
|
autoload :RoutingAssertions, 'action_controller/testing/assertions/routing'
|
|
|
|
autoload :SelectorAssertions, 'action_controller/testing/assertions/selector'
|
|
|
|
autoload :TagAssertions, 'action_controller/testing/assertions/tag'
|
2008-11-24 10:58:52 -05:00
|
|
|
end
|
2008-11-23 17:35:13 -05:00
|
|
|
end
|
|
|
|
|
2008-11-24 11:20:41 -05:00
|
|
|
autoload :HTML, 'action_controller/vendor/html-scanner'
|
2008-11-25 11:38:20 -05:00
|
|
|
|
2009-01-27 19:54:01 -05:00
|
|
|
require 'action_dispatch'
|
2008-11-25 11:38:20 -05:00
|
|
|
require 'action_view'
|