public Method

Callbacks.after_save

Is called after Base.save (regardless of whether it’s a create or update save).

class Contact < ActiveRecord::Base
  after_save { logger.info( 'New contact saved!' ) }
end

Source Code

# File active_record/callbacks.rb, line 211
def after_save()  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.