Set the controller properly

This commit is contained in:
Tieg Zaharia 2013-12-18 16:06:31 -05:00
parent d3cbec8283
commit 18ddae30dd
1 changed files with 1 additions and 1 deletions

View File

@ -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.