PaperTrail.config.track_associations = false

module PaperTrail
  def self.with_actor(actor)
    current_actor = self.actor
    self.whodunnit = actor
    yield
    self.whodunnit = current_actor
  end
end

PaperTrail.config.track_associations = false

module PaperTrail
  def self.with_actor(actor)
    original_actor = self.actor
    self.whodunnit = actor
    yield
    self.whodunnit = original_actor
  end
end

Use better name when pulling switcheroo
Use better name when pulling switcheroo
