vendor/rails/actionpack/lib/action_view/renderable_partial.rb
# NOTE: The template that this mixin is beening include into is frozen
# So you can not set or modify any instance variables
The template that this mixin is beening include into is frozen
So you can not set or modify any instance variables
The template that this mixin is beening include into is frozen So you can not set or modify any instance variables
def render_partial(view, object = nil, local_assigns = {}, as = nil)
      object ||= local_assigns[:object] ||
        local_assigns[variable_name] ||
        view.controller.instance_variable_get("@#{variable_name}") if view.respond_to?(:controller)
      local_assigns[:object] = local_assigns[variable_name] = object
      local_assigns[as] = object if as
      render_template(view, local_assigns)
    end
def render_partial ( view , object = nil , local_assigns = { } , as = nil ) object ||= local_assigns [ :object ] || local_assigns [ variable_name ] || view . controller . instance_variable_get ( "@#{variable_name}" ) if view . respond_to? ( :controller ) local_assigns [ :object ] = local_assigns [ variable_name ] = object local_assigns [ as ] = object if as render_template ( view , local_assigns ) end
NOTE: The template that this mixin is beening include into is frozen
So you can not set or modify any instance variables
NOTE : The template that this mixin is beening include into is frozen So you can not set or modify any instance variables
# Ensure correct object is reassigned to other accessors
view
object
local_assigns
as