Prev | Current Page 508 | Next

Kevin Marshall, Chad Pytel, and Jon Yurek

"Pro Active Record: Databases with Ruby and Rails"

Override
this method in your Active Record model to specify functionality. For more information on
callbacks, see Chapter 4.
after_destroy()
This method is called after Base.destroy(). Therefore, the corresponding database record has
already been deleted, and the attributes have already been frozen. Override this method in
your Active Record model to specify functionality. For more information on callbacks, see
Chapter 4.
after_save()
This method is also called after Base.save(), and it??™s called regardless of whether the object
was being created or updated. Override this method in your Active Record model to specify
functionality. For more information on callbacks, see Chapter 4.
after_update()
This method is also called after Base.save() only when the object has already been saved and
already has a corresponding record in the database. Override this method in your Active Record
model to specify functionality. For more information on callbacks, see Chapter 4.
after_validation()
after_validation is called after the Validations.


Pages:
496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520