lib/action_controller/metal/rack_delegation.rb
require 'action_dispatch/http/request' require 'action_dispatch/http/response' module ActionController module RackDelegation extend ActiveSupport::Concern delegate :headers, :status=, :location=, :content_type=, :status, :location, :content_type, :to => "@_response" def dispatch(action, request, response = ActionDispatch::Response.new) @_response ||= response @_response.request ||= request super(action, request) end def response_body=(body) response.body = body if response super end def reset_session @_request.reset_session end end end
Source Files
- lib/abstract_controller.rb
- lib/abstract_controller/asset_paths.rb
- lib/abstract_controller/base.rb
- lib/abstract_controller/callbacks.rb
- lib/abstract_controller/collector.rb
- lib/abstract_controller/helpers.rb
- lib/abstract_controller/layouts.rb
- lib/abstract_controller/logger.rb
- lib/abstract_controller/rendering.rb
- lib/abstract_controller/translation.rb
- lib/abstract_controller/view_paths.rb
- lib/action_controller.rb
- lib/action_controller/base.rb
- lib/action_controller/caching.rb
- lib/action_controller/caching/actions.rb
- lib/action_controller/caching/fragments.rb
- lib/action_controller/caching/pages.rb
- lib/action_controller/caching/sweeping.rb
- lib/action_controller/deprecated.rb
- lib/action_controller/deprecated/base.rb
- lib/action_controller/deprecated/dispatcher.rb
- lib/action_controller/deprecated/integration_test.rb
- lib/action_controller/deprecated/performance_test.rb
- lib/action_controller/deprecated/url_writer.rb
- lib/action_controller/log_subscriber.rb
- lib/action_controller/metal.rb
- lib/action_controller/metal/compatibility.rb
- lib/action_controller/metal/conditional_get.rb
- lib/action_controller/metal/cookies.rb
- lib/action_controller/metal/exceptions.rb
- lib/action_controller/metal/flash.rb
- lib/action_controller/metal/head.rb
- lib/action_controller/metal/helpers.rb
- lib/action_controller/metal/hide_actions.rb
- lib/action_controller/metal/http_authentication.rb
- lib/action_controller/metal/implicit_render.rb
- lib/action_controller/metal/instrumentation.rb
- lib/action_controller/metal/mime_responds.rb
- lib/action_controller/metal/rack_delegation.rb
- lib/action_controller/metal/redirecting.rb
- lib/action_controller/metal/renderers.rb
- lib/action_controller/metal/rendering.rb
- lib/action_controller/metal/request_forgery_protection.rb
- lib/action_controller/metal/rescue.rb
- lib/action_controller/metal/responder.rb
- lib/action_controller/metal/session_management.rb
- lib/action_controller/metal/streaming.rb
- lib/action_controller/metal/testing.rb
- lib/action_controller/metal/url_for.rb
- lib/action_controller/middleware.rb
- lib/action_controller/railtie.rb
- lib/action_controller/record_identifier.rb
- lib/action_controller/test_case.rb
- lib/action_controller/vendor/html-scanner.rb
- lib/action_controller/vendor/html-scanner/html/document.rb
- lib/action_controller/vendor/html-scanner/html/node.rb
- lib/action_controller/vendor/html-scanner/html/sanitizer.rb
- lib/action_controller/vendor/html-scanner/html/selector.rb
- lib/action_controller/vendor/html-scanner/html/tokenizer.rb
- lib/action_controller/vendor/html-scanner/html/version.rb
- lib/action_dispatch.rb
- lib/action_dispatch/http/cache.rb
- lib/action_dispatch/http/filter_parameters.rb
- lib/action_dispatch/http/headers.rb
- lib/action_dispatch/http/mime_negotiation.rb
- lib/action_dispatch/http/mime_type.rb
- lib/action_dispatch/http/mime_types.rb
- lib/action_dispatch/http/parameter_filter.rb
- lib/action_dispatch/http/parameters.rb
- lib/action_dispatch/http/request.rb
- lib/action_dispatch/http/response.rb
- lib/action_dispatch/http/upload.rb
- lib/action_dispatch/http/url.rb
- lib/action_dispatch/middleware/best_standards_support.rb
- lib/action_dispatch/middleware/callbacks.rb
- lib/action_dispatch/middleware/cookies.rb
- lib/action_dispatch/middleware/flash.rb
- lib/action_dispatch/middleware/head.rb
- lib/action_dispatch/middleware/params_parser.rb
- lib/action_dispatch/middleware/remote_ip.rb
- lib/action_dispatch/middleware/rescue.rb
- lib/action_dispatch/middleware/session/abstract_store.rb
- lib/action_dispatch/middleware/session/cookie_store.rb
- lib/action_dispatch/middleware/session/mem_cache_store.rb
- lib/action_dispatch/middleware/show_exceptions.rb
- lib/action_dispatch/middleware/stack.rb
- lib/action_dispatch/middleware/static.rb
- lib/action_dispatch/railtie.rb
- lib/action_dispatch/routing.rb
- lib/action_dispatch/routing/deprecated_mapper.rb
- lib/action_dispatch/routing/mapper.rb
- lib/action_dispatch/routing/polymorphic_routes.rb
- lib/action_dispatch/routing/route.rb
- lib/action_dispatch/routing/route_set.rb
- lib/action_dispatch/routing/url_for.rb
- lib/action_dispatch/testing/assertions.rb
- lib/action_dispatch/testing/assertions/dom.rb
- lib/action_dispatch/testing/assertions/response.rb
- lib/action_dispatch/testing/assertions/routing.rb
- lib/action_dispatch/testing/assertions/selector.rb
- lib/action_dispatch/testing/assertions/tag.rb
- lib/action_dispatch/testing/integration.rb
- lib/action_dispatch/testing/performance_test.rb
- lib/action_dispatch/testing/test_process.rb
- lib/action_dispatch/testing/test_request.rb
- lib/action_dispatch/testing/test_response.rb
- lib/action_pack.rb
- lib/action_pack/version.rb
- lib/action_view.rb
- lib/action_view/base.rb
- lib/action_view/context.rb
- lib/action_view/helpers.rb
- lib/action_view/helpers/active_model_helper.rb
- lib/action_view/helpers/asset_tag_helper.rb
- lib/action_view/helpers/atom_feed_helper.rb
- lib/action_view/helpers/cache_helper.rb
- lib/action_view/helpers/capture_helper.rb
- lib/action_view/helpers/csrf_helper.rb
- lib/action_view/helpers/date_helper.rb
- lib/action_view/helpers/debug_helper.rb
- lib/action_view/helpers/form_helper.rb
- lib/action_view/helpers/form_options_helper.rb
- lib/action_view/helpers/form_tag_helper.rb
- lib/action_view/helpers/javascript_helper.rb
- lib/action_view/helpers/number_helper.rb
- lib/action_view/helpers/prototype_helper.rb
- lib/action_view/helpers/raw_output_helper.rb
- lib/action_view/helpers/record_tag_helper.rb
- lib/action_view/helpers/sanitize_helper.rb
- lib/action_view/helpers/scriptaculous_helper.rb
- lib/action_view/helpers/tag_helper.rb
- lib/action_view/helpers/text_helper.rb
- lib/action_view/helpers/translation_helper.rb
- lib/action_view/helpers/url_helper.rb
- lib/action_view/log_subscriber.rb
- lib/action_view/lookup_context.rb
- lib/action_view/paths.rb
- lib/action_view/railtie.rb
- lib/action_view/render/layouts.rb
- lib/action_view/render/partials.rb
- lib/action_view/render/rendering.rb
- lib/action_view/template.rb
- lib/action_view/template/error.rb
- lib/action_view/template/handler.rb
- lib/action_view/template/handlers.rb
- lib/action_view/template/handlers/builder.rb
- lib/action_view/template/handlers/erb.rb
- lib/action_view/template/handlers/rjs.rb
- lib/action_view/template/resolver.rb
- lib/action_view/template/text.rb
- lib/action_view/test_case.rb
- lib/action_view/testing/resolvers.rb