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:
parent
d3cbec8283
commit
18ddae30dd
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue