https://github.com/collectiveidea/delayed_job/blob/master/lib/delayed/psych_ext.rb#L101 I'm really worried and I think it breaks logic in rails outside from delayed_job.
I store deleted objects as serialized values in another object, the problem when I try to access this object rails fails with Delayed::DeserializationError: Delayed::DeserializationError:
delayed_job-3.0.3/lib/delayed/psych_ext.rb:108→ rescue in visit_Psych_Nodes_Mapping_with_class
delayed_job redefined the psych method and tries to find the record, but it definitely will fail because the record is deleted and raises the error instead of restoring it.
related to #296