1
0
Fork 0
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:
David Heinemeier Hansson 2009-12-20 18:15:20 -08:00
parent 9b41e1e4d8
commit 36c13cc07a
3 changed files with 5 additions and 6 deletions

View file

@ -26,7 +26,7 @@ module ActionController
autoload :Compatibility
autoload :Redirecting
autoload :Rendering
autoload :RenderOptions
autoload :Renderers
autoload :Rescue
autoload :Responder
autoload :Session

View file

@ -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

View file

@ -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