method

before_destroy

rails latest stable - Class: ActiveRecord::Callbacks::ClassMethods
before_destroy
public

Registers a callback to be called before a record is destroyed. See ActiveRecord::Callbacks for more information.