123456789_123456789_123456789_123456789_123456789_

Module: ActionController::Rendering::ClassMethods

Relationships & Source Files
Defined in: actionpack/lib/action_controller/metal/rendering.rb

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#render (readonly)

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/rendering.rb', line 13

delegate :render, to: :renderer

#renderer (readonly)

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

[ GitHub ]

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

attr_reader :renderer

Instance Method Details

#inherited(klass)

[ GitHub ]

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

def inherited(klass)
  klass.setup_renderer!
  super
end

#setup_renderer!

This method is for internal use only.
[ GitHub ]

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

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