Set the controller properly
This commit is contained in:
parent
d3cbec8283
commit
18ddae30dd
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue