Method: ActionView::Context#_layout_for
- Defined in:
- actionview/lib/action_view/context.rb
#_layout_for(name = nil) ⇒ Object
Encapsulates the interaction with the view flow so it returns the correct buffer on yield. This is usually overwritten by helpers to add more behavior.
27 28 29 30 |
# File 'actionview/lib/action_view/context.rb', line 27 def _layout_for(name = nil) name ||= :layout view_flow.get(name).html_safe end |