private Method

Partials.extracting_object(partial_name, object_assigns)

There's no documentation for this item.

Source Code

# File action_view/partials.rb, line 180
def extracting_object(partial_name, object_assigns)
  variable_name = partial_variable_name(partial_name)
  if object_assigns.nil?
    controller.instance_variable_get("@#{variable_name}")
  else
    object_assigns
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.