diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2009-12-20 18:15:20 -0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2009-12-20 18:15:20 -0800 |
commit | 36c13cc07a45cbfa5d06c89001a092c70b07e253 (patch) | |
tree | 59f54068cc93603355eb2e9057a6fad047d16aee /actionpack/lib/action_controller | |
parent | 9b41e1e4d8b9d159254dc4ad4bbd3207f1b49eb5 (diff) | |
download | rails-36c13cc07a45cbfa5d06c89001a092c70b07e253.tar.gz rails-36c13cc07a45cbfa5d06c89001a092c70b07e253.tar.bz2 rails-36c13cc07a45cbfa5d06c89001a092c70b07e253.zip |
Rename RenderOptions to Renderers
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/base.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_controller/metal/renderers.rb (renamed from actionpack/lib/action_controller/metal/render_options.rb) | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index ec64cc1a39..d84705434d 100644 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -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 diff --git a/actionpack/lib/action_controller/metal/render_options.rb b/actionpack/lib/action_controller/metal/renderers.rb index b6a7ca0eda..c1ba47927a 100644 --- a/actionpack/lib/action_controller/metal/render_options.rb +++ b/actionpack/lib/action_controller/metal/renderers.rb @@ -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 |