module ActivityNotification::StoreController
Module included in controllers to allow ActivityNotification
access to controller instance
Public Instance Methods
store_controller_for_activity_notification() { || ... }
click to toggle source
Sets controller as around action to use controller instance in models or helpers
# File lib/activity_notification/controllers/store_controller.rb, line 29 def store_controller_for_activity_notification begin ActivityNotification.set_controller(self) yield ensure ActivityNotification.set_controller(nil) end end