class ActionView::RenderParser

def parse_render(node)

def parse_render(node)
  node = node.argument_nodes
  if (node.length == 1 || node.length == 2) && !node[0].hash?
    if node.length == 1
      options = normalize_args(node[0], nil)
    elsif node.length == 2
      options = normalize_args(node[0], node[1])
    end
    return nil unless options
    parse_render_from_options(options)
  elsif node.length == 1 && node[0].hash?
    options = parse_hash_to_symbols(node[0])
    return nil unless options
    parse_render_from_options(options)
  else
    nil
  end
end