Module: ActionController::Rendering::ClassMethods

Defined in:
actionpack/lib/action_controller/metal/rendering.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#rendererObject (readonly)

Returns a renderer instance (inherited from ActionController::Renderer) for the controller.



15
16
17
# File 'actionpack/lib/action_controller/metal/rendering.rb', line 15

def renderer
  @renderer
end

Instance Method Details

#inherited(klass) ⇒ Object



21
22
23
24
# File 'actionpack/lib/action_controller/metal/rendering.rb', line 21

def inherited(klass)
  klass.setup_renderer!
  super
end

#setup_renderer!Object

:nodoc:



17
18
19
# File 'actionpack/lib/action_controller/metal/rendering.rb', line 17

def setup_renderer! # :nodoc:
  @renderer = Renderer.for(self)
end