Are there some callbacks for soft delete in Mongoid? Because before_destory will not be launched.
Now I thought I could use before_update , but it doesnβt look as clear as I want, and it also does not start
class Message include Mongoid::Document include Mongoid::Timestamps include Mongoid::Paranoia before_update :some_action private def some_action if self.deleted_at_changed? ... # do my stuff end end end
So, the only solution is to call it from killing actions in the controller?
fl00r source share