Flowdock
method

after_destroy

Importance_1
after_destroy() public

Is called after Base.destroy (and all the attributes have been frozen).

 class Contact < ActiveRecord::Base
   after_destroy { |record| logger.info( "Contact #{record.id} was destroyed." ) }
 end
Show source
Register or log in to add new notes.