Method: PublicActivity.with_tracking
- Defined in:
- lib/public_activity/testing.rb
.with_tracking ⇒ Object
Execute the code block with PublicActiviy active
Example usage:
PublicActivity.with_tracking do
# your test code here
end
16 17 18 19 20 21 22 |
# File 'lib/public_activity/testing.rb', line 16 def self.with_tracking current = PublicActivity.config.enabled PublicActivity.config.enabled(true) yield ensure PublicActivity.config.enabled(current) end |