lib/paper_trail/record_trail.rb
# Temporarily overwrites the value of whodunnit and then executes the
# provided block.
Temporarily overwrites the value of whodunnit and then executes the
provided block.
Temporarily overwrites the value of whodunnit and then executes the provided block .
def whodunnit(value)
      raise ArgumentError, "expected to receive a block" unless block_given?
      current_whodunnit = PaperTrail.whodunnit
      PaperTrail.whodunnit = value
      yield @record
    ensure
      PaperTrail.whodunnit = current_whodunnit
    end
def whodunnit ( value ) raise ArgumentError , "expected to receive a block" unless block_given? current_whodunnit = PaperTrail . whodunnit PaperTrail . whodunnit = value yield @record ensure PaperTrail . whodunnit = current_whodunnit end
Temporarily overwrites the value of whodunnit and then executes the
provided block.
Temporarily overwrites the value of whodunnit and then executes the provided block .
value
<not_specific>