Class: ActionView::TemplateRenderer
- Inherits:
-
AbstractRenderer
- Object
- AbstractRenderer
- ActionView::TemplateRenderer
- Defined in:
- lib/action_view/renderer/template_renderer.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from AbstractRenderer
Constructor Details
This class inherits a constructor from ActionView::AbstractRenderer
Instance Method Details
#render(context, options) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/action_view/renderer/template_renderer.rb', line 5 def render(context, ) @view = context @details = extract_details() template = determine_template() prepend_formats(template.formats) @lookup_context.rendered_format ||= (template.formats.first || formats.first) render_template(template, [:layout], [:locals]) end |