after_save() public

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
Show source
Register or log in to add new notes.