Module: ActivityNotification::StoreController

Extended by:
ActiveSupport::Concern
Included in:
NotificationsController
Defined in:
lib/activity_notification/controllers/store_controller.rb

Overview

Module included in controllers to allow p_a access to controller instance

Instance Method Summary collapse

Instance Method Details

#store_controller_for_activity_notification ⇒ Object



23
24
25
26
27
28
# File 'lib/activity_notification/controllers/store_controller.rb', line 23

def store_controller_for_activity_notification
  ActivityNotification.set_controller(self)
  yield
ensure
  ActivityNotification.set_controller(nil)
end