module TrackChanges
Constants
- VERSION
Public Class Methods
with_changes_attributed_to(new_source, &block)
click to toggle source
Set the source used for implict changes_by attribution for the duration of the block
# File lib/track_changes/attribution.rb, line 6 def self.with_changes_attributed_to(new_source, &block) old_source = self.default_attribution self.default_attribution = new_source block.call ensure self.default_attribution = old_source end