Tell us about your environment
**Ruby Version:3.0.5
**Rails Version:7.0.4
**PostgreSQL Version:13.9
**Logidze Version:1.2.3
What did you do?
Using logidze and acts_as_paranoid in one project. When record is marked as deleted with acts_as_paranoid, and I load it like so:
obj = SomeObject.with_deleted.find(some_id)
and then execute:
obj.reload_log_data
What did you expect to happen?
log_data gets loaded
What actually happened?
The query is affected by acts_as_paranoid and adds WHERE "some_objects"."deleted_at" IS NULL - resulting in log_data being null.
Not sure how to work-around it, or which gem should actually fix it.