Module: PublicActivity::StoreController

Extended by:
ActiveSupport::Concern
Defined in:
lib/public_activity/utility/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_public_activityObject



25
26
27
28
29
30
# File 'lib/public_activity/utility/store_controller.rb', line 25

def store_controller_for_public_activity
  PublicActivity.set_controller(self)
  yield
ensure
  PublicActivity.set_controller(nil)
end