Module: Weasel::Auditable
- Defined in:
- lib/weasel/concerns/auditable.rb
Instance Method Summary collapse
Instance Method Details
#audit ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/weasel/concerns/auditable.rb', line 7 def audit begin yield ensure return unless actor.present? Weasel::EventsWorker.perform_async(actor.class.name, actor.id, MultiJson.dump(request_data)) end end |