1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

Set the controller properly

This commit is contained in:
Tieg Zaharia 2013-12-18 16:06:31 -05:00
parent d3cbec8283
commit 18ddae30dd

View file

@ -12,7 +12,7 @@ module Draper
# Set the current controller # Set the current controller
def activate_draper def activate_draper
Draper::ViewContext.controller = controller Draper::ViewContext.controller = self
end end
# Returns the current controller. # Returns the current controller.