method

after_destroy

Importance_1
v1.2.6 - Show latest stable - 0 notes - Class: ActiveRecord::Callbacks
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.