Method: ActionView::Context#_layout_for

Defined in:
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 overwriten by helpers to add more behavior. :api: plugin



31
32
33
34
# File 'lib/action_view/context.rb', line 31

def _layout_for(name=nil)
  name ||= :layout
  view_flow.get(name).html_safe
end