Module: ActionController::Rendering::ClassMethods
- Defined in:
- actionpack/lib/action_controller/metal/rendering.rb
Instance Attribute Summary collapse
-
#renderer ⇒ Object
readonly
Returns a renderer instance (inherited from ActionController::Renderer) for the controller.
Instance Method Summary collapse
Instance Attribute Details
Instance Method Details
permalink #inherited(klass) ⇒ Object
[View source]
23 24 25 26 |
# File 'actionpack/lib/action_controller/metal/rendering.rb', line 23 def inherited(klass) klass.setup_renderer! super end |
permalink #setup_renderer! ⇒ Object
:nodoc:
19 20 21 |
# File 'actionpack/lib/action_controller/metal/rendering.rb', line 19 def setup_renderer! # :nodoc: @renderer = Renderer.for(self) end |