Skip to content

Instantly share code, notes, and snippets.

@leommoore
Created April 7, 2012 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leommoore/2330730 to your computer and use it in GitHub Desktop.
Save leommoore/2330730 to your computer and use it in GitHub Desktop.
Rails Model Callbacks
#Validation
:before_validation # Create, Update
:after_validation # Create, Update
#Database
:before_save # Create, Update
:before_create # Create
:before_update # Update
:before_destroy # Destroy
:after_create # Create
:after_update # Update
:after_destroy # Destroy
:after_save # Create, Update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment