提交 83f4d86a 编写于 作者: D David Heinemeier Hansson

Rename the RenderingController module to just plain Rendering

上级 bdccffc4
...@@ -253,7 +253,7 @@ module ActionMailer #:nodoc: ...@@ -253,7 +253,7 @@ module ActionMailer #:nodoc:
class Base class Base
include AdvAttrAccessor, PartContainer, Quoting, Utils include AdvAttrAccessor, PartContainer, Quoting, Utils
include AbstractController::RenderingController include AbstractController::Rendering
include AbstractController::LocalizedCache include AbstractController::LocalizedCache
include AbstractController::Layouts include AbstractController::Layouts
......
...@@ -15,6 +15,6 @@ module AbstractController ...@@ -15,6 +15,6 @@ module AbstractController
autoload :Layouts autoload :Layouts
autoload :LocalizedCache autoload :LocalizedCache
autoload :Logger autoload :Logger
autoload :RenderingController autoload :Rendering
end end
end end
...@@ -4,7 +4,7 @@ module AbstractController ...@@ -4,7 +4,7 @@ module AbstractController
module Helpers module Helpers
extend ActiveSupport::Concern extend ActiveSupport::Concern
include RenderingController include Rendering
def self.next_serial def self.next_serial
@helper_serial ||= 0 @helper_serial ||= 0
......
...@@ -2,7 +2,7 @@ module AbstractController ...@@ -2,7 +2,7 @@ module AbstractController
module Layouts module Layouts
extend ActiveSupport::Concern extend ActiveSupport::Concern
include RenderingController include Rendering
included do included do
extlib_inheritable_accessor(:_layout_conditions) { Hash.new } extlib_inheritable_accessor(:_layout_conditions) { Hash.new }
......
...@@ -10,7 +10,7 @@ def initialize(message = nil) ...@@ -10,7 +10,7 @@ def initialize(message = nil)
end end
end end
module RenderingController module Rendering
extend ActiveSupport::Concern extend ActiveSupport::Concern
include AbstractController::Logger include AbstractController::Logger
...@@ -80,7 +80,7 @@ def render_to_body(options = {}) ...@@ -80,7 +80,7 @@ def render_to_body(options = {})
# #
# :api: plugin # :api: plugin
def render_to_string(options = {}) def render_to_string(options = {})
AbstractController::RenderingController.body_to_s(render_to_body(options)) AbstractController::Rendering.body_to_s(render_to_body(options))
end end
# Renders the template from an object. # Renders the template from an object.
......
...@@ -25,7 +25,7 @@ module ActionController ...@@ -25,7 +25,7 @@ module ActionController
autoload :RackConvenience autoload :RackConvenience
autoload :Compatibility autoload :Compatibility
autoload :Redirector autoload :Redirector
autoload :RenderingController autoload :Rendering
autoload :RenderOptions autoload :RenderOptions
autoload :Rescue autoload :Rescue
autoload :Responder autoload :Responder
......
...@@ -9,7 +9,7 @@ class Base < Metal ...@@ -9,7 +9,7 @@ class Base < Metal
include ActionController::HideActions include ActionController::HideActions
include ActionController::UrlFor include ActionController::UrlFor
include ActionController::Redirector include ActionController::Redirector
include ActionController::RenderingController include ActionController::Rendering
include ActionController::RenderOptions::All include ActionController::RenderOptions::All
include ActionController::Layouts include ActionController::Layouts
include ActionController::ConditionalGet include ActionController::ConditionalGet
......
...@@ -158,7 +158,7 @@ module ActionController ...@@ -158,7 +158,7 @@ module ActionController
module Layouts module Layouts
extend ActiveSupport::Concern extend ActiveSupport::Concern
include ActionController::RenderingController include ActionController::Rendering
include AbstractController::Layouts include AbstractController::Layouts
module ClassMethods module ClassMethods
......
module ActionController module ActionController
module RenderingController module Rendering
extend ActiveSupport::Concern extend ActiveSupport::Concern
included do included do
include AbstractController::RenderingController include AbstractController::Rendering
include AbstractController::LocalizedCache include AbstractController::LocalizedCache
end end
......
...@@ -4,7 +4,7 @@ module ActionController #:nodoc: ...@@ -4,7 +4,7 @@ module ActionController #:nodoc:
module Streaming module Streaming
extend ActiveSupport::Concern extend ActiveSupport::Concern
include ActionController::RenderingController include ActionController::Rendering
DEFAULT_SEND_FILE_OPTIONS = { DEFAULT_SEND_FILE_OPTIONS = {
:type => 'application/octet-stream'.freeze, :type => 'application/octet-stream'.freeze,
......
...@@ -2,7 +2,7 @@ module ActionController #:nodoc: ...@@ -2,7 +2,7 @@ module ActionController #:nodoc:
module Verification #:nodoc: module Verification #:nodoc:
extend ActiveSupport::Concern extend ActiveSupport::Concern
include AbstractController::Callbacks, Session, Flash, RenderingController include AbstractController::Callbacks, Session, Flash, Rendering
# This module provides a class-level method for specifying that certain # This module provides a class-level method for specifying that certain
# actions are guarded against being called without certain prerequisites # actions are guarded against being called without certain prerequisites
......
...@@ -28,7 +28,7 @@ class TestBasic < ActiveSupport::TestCase ...@@ -28,7 +28,7 @@ class TestBasic < ActiveSupport::TestCase
# Test Render mixin # Test Render mixin
# ==== # ====
class RenderingController < AbstractController::Base class RenderingController < AbstractController::Base
include ::AbstractController::RenderingController include ::AbstractController::Rendering
def _prefix() end def _prefix() end
......
...@@ -6,7 +6,7 @@ module AbstractController ...@@ -6,7 +6,7 @@ module AbstractController
module Testing module Testing
class ControllerWithHelpers < AbstractController::Base class ControllerWithHelpers < AbstractController::Base
include AbstractController::RenderingController include AbstractController::Rendering
include Helpers include Helpers
def with_module def with_module
......
...@@ -6,7 +6,7 @@ module Layouts ...@@ -6,7 +6,7 @@ module Layouts
# Base controller for these tests # Base controller for these tests
class Base < AbstractController::Base class Base < AbstractController::Base
include AbstractController::RenderingController include AbstractController::Rendering
include AbstractController::Layouts include AbstractController::Layouts
self.view_paths = [ActionView::FixtureResolver.new( self.view_paths = [ActionView::FixtureResolver.new(
......
...@@ -4,7 +4,7 @@ module AbstractController ...@@ -4,7 +4,7 @@ module AbstractController
module Testing module Testing
class CachedController < AbstractController::Base class CachedController < AbstractController::Base
include AbstractController::RenderingController include AbstractController::Rendering
include AbstractController::LocalizedCache include AbstractController::LocalizedCache
self.view_paths = [ActionView::FixtureResolver.new( self.view_paths = [ActionView::FixtureResolver.new(
......
...@@ -4,7 +4,7 @@ module AbstractController ...@@ -4,7 +4,7 @@ module AbstractController
module Testing module Testing
class ControllerRenderer < AbstractController::Base class ControllerRenderer < AbstractController::Base
include AbstractController::RenderingController include AbstractController::Rendering
self.view_paths = [ActionView::FixtureResolver.new( self.view_paths = [ActionView::FixtureResolver.new(
"default.erb" => "With Default", "default.erb" => "With Default",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册