提交 29c8a430 编写于 作者: J Joshua Peek

Rename RackConvenience => RackDelegation

上级 0f8a5c79
......@@ -22,7 +22,7 @@ module ActionController
autoload :HideActions
autoload :Layouts
autoload :MimeResponds
autoload :RackConvenience
autoload :RackDelegation
autoload :Compatibility
autoload :Redirecting
autoload :Rendering
......
......@@ -13,7 +13,7 @@ class Base < Metal
include ActionController::RenderOptions::All
include ActionController::Layouts
include ActionController::ConditionalGet
include ActionController::RackConvenience
include ActionController::RackDelegation
include ActionController::Benchmarking
include ActionController::Configuration
......
......@@ -45,7 +45,7 @@ def controller_path
# The details below can be overridden to support a specific
# Request and Response object. The default ActionController::Base
# implementation includes RackConvenience, which makes a request
# implementation includes RackDelegation, which makes a request
# and response object available. You might wish to control the
# environment and response manually for performance reasons.
......@@ -57,8 +57,8 @@ def initialize(*)
end
# Basic implementations for content_type=, location=, and headers are
# provided to reduce the dependency on the RackConvenience module
# in Rendering and Redirecting.
# provided to reduce the dependency on the RackDelegation module
# in Renderer and Redirector.
def content_type=(type)
headers["Content-Type"] = type.to_s
......
......@@ -2,7 +2,7 @@ module ActionController
module ConditionalGet
extend ActiveSupport::Concern
include RackConvenience
include RackDelegation
include Head
# Sets the etag, last_modified, or both on the response and renders a
......
......@@ -46,7 +46,7 @@ module ActionController #:nodoc:
module Cookies
extend ActiveSupport::Concern
include RackConvenience
include RackDelegation
included do
helper_method :cookies
......
module ActionController
module RackConvenience
module RackDelegation
extend ActiveSupport::Concern
included do
......
......@@ -2,7 +2,7 @@ module ActionController
module Testing
extend ActiveSupport::Concern
include RackConvenience
include RackDelegation
# OMG MEGA HAX
def process_with_new_base_test(request, response)
......
......@@ -2,7 +2,7 @@ module ActionController
module UrlFor
extend ActiveSupport::Concern
include RackConvenience
include RackDelegation
# Overwrite to implement a number of default options that all url_for-based methods will use. The default options should come in
# the form of a hash, just like the one you would use for url_for directly. Example:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册