commontator icon indicating copy to clipboard operation
commontator copied to clipboard

When user is deleted, all comments are deleted too.

Open acesuares opened this issue 4 years ago • 1 comments

When user is deleted, all comments are deleted too. But in the case of a 'soft delete', this might not be a good idea. In case of soft delete, the user does get a :deleted_at

How to prevent this from happening? I checked if I had destroy: :dependent but I don't see it anywhere in my models.

acesuares avatar Jun 10 '20 17:06 acesuares

Sorry for not seeing this earlier, but acts_as_commontator sets dependent: :destroy and there seems to currently be no way to prevent that.

Dantemss avatar Mar 03 '21 19:03 Dantemss