public Method

Callbacks.after_destroy

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

Source Code

# File active_record/callbacks.rb, line 293
def after_destroy()  end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.