Changeset 4702
- Timestamp:
- 08/07/06 06:21:32 (2 years ago)
- Files:
-
- branches/stable/activerecord/CHANGELOG (modified) (1 diff)
- branches/stable/activerecord/lib/active_record/callbacks.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/stable/activerecord/CHANGELOG
r4496 r4702 1 1 *1.14.3* (June 27th, 2006) 2 3 * Update callbacks documentation. #3970 [Robby Russell <robby@planetargon.com>] 2 4 3 5 * Properly quote index names in migrations (closes #4764) [John Long] branches/stable/activerecord/lib/active_record/callbacks.rb
r3682 r4702 244 244 245 245 # Is called _after_ Base.save (regardless of whether it's a create or update save). 246 # 247 # class Contact < ActiveRecord::Base 248 # after_save { logger.info( 'New contact saved!' ) } 249 # end 246 250 def after_save() end 247 251 def create_or_update_with_callbacks #:nodoc: … … 313 317 314 318 # Is called _before_ Base.destroy. 319 # 320 # Note: If you need to _destroy_ or _nullify_ associated records first, 321 # use the _:dependent_ option on your associations. 315 322 def before_destroy() end 316 323 317 324 # Is called _after_ Base.destroy (and all the attributes have been frozen). 325 # 326 # class Contact < ActiveRecord::Base 327 # after_destroy { |record| logger.info( "Contact #{record.id} was destroyed." ) } 328 # end 318 329 def after_destroy() end 319 330 def destroy_with_callbacks #:nodoc: