class ActionView::RenderParser

def normalize_args(string, options_hash)

render(partial: "foo", ...)
or
render(template: "foo", ...)
into either
render("foo", ...)
Convert
def normalize_args(string, options_hash)
  if options_hash
    { partial: string, locals: options_hash }
  else
    { partial: string }
  end
end