lib/draper/view_context.rb in draper-1.3.0 vs lib/draper/view_context.rb in draper-1.3.1

- old
+ new

@@ -8,9 +8,14 @@ super.tap do |context| Draper::ViewContext.current = context end end + # Set the current controller + def activate_draper + Draper::ViewContext.controller = self + end + # Returns the current controller. def self.controller RequestStore.store[:current_controller] end