mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Rename RenderOptions to Renderers
This commit is contained in:
parent
9b41e1e4d8
commit
36c13cc07a
3 changed files with 5 additions and 6 deletions
|
@ -26,7 +26,7 @@ module ActionController
|
|||
autoload :Compatibility
|
||||
autoload :Redirecting
|
||||
autoload :Rendering
|
||||
autoload :RenderOptions
|
||||
autoload :Renderers
|
||||
autoload :Rescue
|
||||
autoload :Responder
|
||||
autoload :Session
|
||||
|
|
|
@ -10,7 +10,7 @@ module ActionController
|
|||
include ActionController::UrlFor
|
||||
include ActionController::Redirecting
|
||||
include ActionController::Rendering
|
||||
include ActionController::RenderOptions::All
|
||||
include ActionController::Renderers::All
|
||||
include ActionController::Layouts
|
||||
include ActionController::ConditionalGet
|
||||
include ActionController::RackConvenience
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
module ActionController
|
||||
|
||||
def self.add_renderer(key, &block)
|
||||
RenderOptions.add(key, &block)
|
||||
Renderers.add(key, &block)
|
||||
end
|
||||
|
||||
module RenderOptions
|
||||
module Renderers
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
|
@ -52,7 +51,7 @@ module ActionController
|
|||
|
||||
module All
|
||||
extend ActiveSupport::Concern
|
||||
include RenderOptions
|
||||
include Renderers
|
||||
|
||||
INCLUDED = []
|
||||
included do
|
Loading…
Reference in a new issue