app/models/journaled/audit_log/event.rb in journaled-5.1.1 vs app/models/journaled/audit_log/event.rb in journaled-5.2.0

- old
+ new

@@ -56,10 +56,11 @@ filtered_changes[key] = value.map { |val| '[FILTERED]' if val } if filter_key?(key) end end def snapshot - filtered_attributes if record._log_snapshot || AuditLog.snapshots_enabled + filtered_attributes if record._log_snapshot || AuditLog.snapshots_enabled || + (database_operation == 'delete' && AuditLog.snapshot_on_deletion) end def actor Journaled.actor_uri end