# File lib/paper_trail/has_paper_trail.rb, line 254 def whodunnit(value) raise ArgumentError, 'expected to receive a block' unless block_given? current_whodunnit = PaperTrail.whodunnit PaperTrail.whodunnit = value yield self ensure PaperTrail.whodunnit = current_whodunnit end