From 18ddae30dde741f65f7a3adf19ded9439bd8bb36 Mon Sep 17 00:00:00 2001 From: Tieg Zaharia Date: Wed, 18 Dec 2013 16:06:31 -0500 Subject: [PATCH] Set the controller properly --- lib/draper/view_context.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/draper/view_context.rb b/lib/draper/view_context.rb index 02d0ac3..7f5007f 100755 --- a/lib/draper/view_context.rb +++ b/lib/draper/view_context.rb @@ -12,7 +12,7 @@ module Draper # Set the current controller def activate_draper - Draper::ViewContext.controller = controller + Draper::ViewContext.controller = self end # Returns the current controller.