Module: ActionController::Rendering::ClassMethods

Defined in:
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.



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

def renderer
  @renderer
end

Instance Method Details

#inherited(klass) ⇒ Object



23
24
25
26
# File 'lib/action_controller/metal/rendering.rb', line 23

def inherited(klass)
  klass.setup_renderer!
  super
end

#setup_renderer!Object

:nodoc:



19
20
21
# File 'lib/action_controller/metal/rendering.rb', line 19

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