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

Rename RackConvenience => RackDelegation

上级 0f8a5c79
...@@ -22,7 +22,7 @@ module ActionController ...@@ -22,7 +22,7 @@ module ActionController
autoload :HideActions autoload :HideActions
autoload :Layouts autoload :Layouts
autoload :MimeResponds autoload :MimeResponds
autoload :RackConvenience autoload :RackDelegation
autoload :Compatibility autoload :Compatibility
autoload :Redirecting autoload :Redirecting
autoload :Rendering autoload :Rendering
......
...@@ -13,7 +13,7 @@ class Base < Metal ...@@ -13,7 +13,7 @@ class Base < Metal
include ActionController::RenderOptions::All include ActionController::RenderOptions::All
include ActionController::Layouts include ActionController::Layouts
include ActionController::ConditionalGet include ActionController::ConditionalGet
include ActionController::RackConvenience include ActionController::RackDelegation
include ActionController::Benchmarking include ActionController::Benchmarking
include ActionController::Configuration include ActionController::Configuration
......
...@@ -45,7 +45,7 @@ def controller_path ...@@ -45,7 +45,7 @@ def controller_path
# The details below can be overridden to support a specific # The details below can be overridden to support a specific
# Request and Response object. The default ActionController::Base # 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 # and response object available. You might wish to control the
# environment and response manually for performance reasons. # environment and response manually for performance reasons.
...@@ -57,8 +57,8 @@ def initialize(*) ...@@ -57,8 +57,8 @@ def initialize(*)
end end
# Basic implementations for content_type=, location=, and headers are # Basic implementations for content_type=, location=, and headers are
# provided to reduce the dependency on the RackConvenience module # provided to reduce the dependency on the RackDelegation module
# in Rendering and Redirecting. # in Renderer and Redirector.
def content_type=(type) def content_type=(type)
headers["Content-Type"] = type.to_s headers["Content-Type"] = type.to_s
......
...@@ -2,7 +2,7 @@ module ActionController ...@@ -2,7 +2,7 @@ module ActionController
module ConditionalGet module ConditionalGet
extend ActiveSupport::Concern extend ActiveSupport::Concern
include RackConvenience include RackDelegation
include Head include Head
# Sets the etag, last_modified, or both on the response and renders a # Sets the etag, last_modified, or both on the response and renders a
......
...@@ -46,7 +46,7 @@ module ActionController #:nodoc: ...@@ -46,7 +46,7 @@ module ActionController #:nodoc:
module Cookies module Cookies
extend ActiveSupport::Concern extend ActiveSupport::Concern
include RackConvenience include RackDelegation
included do included do
helper_method :cookies helper_method :cookies
......
module ActionController module ActionController
module RackConvenience module RackDelegation
extend ActiveSupport::Concern extend ActiveSupport::Concern
included do included do
......
...@@ -2,7 +2,7 @@ module ActionController ...@@ -2,7 +2,7 @@ module ActionController
module Testing module Testing
extend ActiveSupport::Concern extend ActiveSupport::Concern
include RackConvenience include RackDelegation
# OMG MEGA HAX # OMG MEGA HAX
def process_with_new_base_test(request, response) def process_with_new_base_test(request, response)
......
...@@ -2,7 +2,7 @@ module ActionController ...@@ -2,7 +2,7 @@ module ActionController
module UrlFor module UrlFor
extend ActiveSupport::Concern 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 # 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: # 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.
先完成此消息的编辑!
想要评论请 注册