You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have use case to delete the soft deleted document after a period. So, I fetched the deleted document and used destroy! but it did not work. I had to restore that document and destroy! which is weird.
Then, I tried delete! instead of destroy! which worked. I would have expected same behavior here.
p=Person.new()p.destroyp.destroyed?# > true# permanently delete - did not workp.destroy!# > nil# permanently delete - worked!!p.delete!# > true
The text was updated successfully, but these errors were encountered:
I have use case to delete the soft deleted document after a period. So, I fetched the deleted document and used destroy! but it did not work. I had to restore that document and destroy! which is weird.
Then, I tried delete! instead of destroy! which worked. I would have expected same behavior here.
The text was updated successfully, but these errors were encountered: