diff --git a/actionview/lib/action_view/renderer/object_renderer.rb b/actionview/lib/action_view/renderer/object_renderer.rb
index <HASH>..<HASH> 100644
--- a/actionview/lib/action_view/renderer/object_renderer.rb
+++ b/actionview/lib/action_view/renderer/object_renderer.rb
@@ -4,8 +4,15 @@ module ActionView
   class ObjectRenderer < PartialRenderer # :nodoc:
     include ObjectRendering
 
+    def initialize(lookup_context, options)
+      super
+      @object     = nil
+      @local_name = nil
+    end
+
     def render_object_with_partial(object, partial, context, block)
-      @object = object
+      @object     = object
+      @local_name = local_variable(partial)
       render(partial, context, block)
     end
 
@@ -16,12 +23,11 @@ module ActionView
 
     private
       def template_keys(path)
-        super + [local_variable(path)]
+        super + [@local_name]
       end
 
       def render_partial_template(view, locals, template, layout, block)
-        as     = template.variable
-        locals[as] = @object
+        locals[@local_name || template.variable] = @object
         super(view, locals, template, layout, block)
       end
   end
Fix issue in ActionText

ActionText was using `render` in a way that ActionView didn't have tests
for.  This is a fix for it.