rubyruby-on-rails-3rubygemsimpressionsimpressionist

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)

Solution

  • Based on this test it's the expected behaviour.

    Now I would try to monkey patch this method in order to remove the destroy dependance.