jeudi 24 mars 2016

Don't delete impressions when soft deleting a record

I'm using impressionist gem to lock the views for different products. I'm also having soft-deletion in my application. When I remove any record/product, its impressions also got deleted.

I just want to keep the impressions and don't want to delete it on Record deletion. Any idea, how i can do it ?

using

ruby 2.2.2
Rails 4.2.4
impressionist (1.5.1)

Aucun commentaire:

Enregistrer un commentaire