提交 9b41e1e4 编写于 作者: D David Heinemeier Hansson

Renamed Redirector to Redirecting (its a module, not a class)

上级 83f4d86a
...@@ -24,7 +24,7 @@ module ActionController ...@@ -24,7 +24,7 @@ module ActionController
autoload :MimeResponds autoload :MimeResponds
autoload :RackConvenience autoload :RackConvenience
autoload :Compatibility autoload :Compatibility
autoload :Redirector autoload :Redirecting
autoload :Rendering autoload :Rendering
autoload :RenderOptions autoload :RenderOptions
autoload :Rescue autoload :Rescue
......
...@@ -8,7 +8,7 @@ class Base < Metal ...@@ -8,7 +8,7 @@ class Base < Metal
include ActionController::Helpers include ActionController::Helpers
include ActionController::HideActions include ActionController::HideActions
include ActionController::UrlFor include ActionController::UrlFor
include ActionController::Redirector include ActionController::Redirecting
include ActionController::Rendering include ActionController::Rendering
include ActionController::RenderOptions::All include ActionController::RenderOptions::All
include ActionController::Layouts include ActionController::Layouts
......
...@@ -58,7 +58,7 @@ def initialize(*) ...@@ -58,7 +58,7 @@ def initialize(*)
# 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 RackConvenience module
# in Renderer and Redirector. # in Rendering and Redirecting.
def content_type=(type) def content_type=(type)
headers["Content-Type"] = type.to_s headers["Content-Type"] = type.to_s
......
...@@ -7,7 +7,7 @@ def initialize(message = nil) ...@@ -7,7 +7,7 @@ def initialize(message = nil)
end end
end end
module Redirector module Redirecting
extend ActiveSupport::Concern extend ActiveSupport::Concern
include AbstractController::Logger include AbstractController::Logger
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册