Skip to content

Instantly share code, notes, and snippets.

@rafaeljesus
Created June 24, 2013 13:40
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 rafaeljesus/5850123 to your computer and use it in GitHub Desktop.
Save rafaeljesus/5850123 to your computer and use it in GitHub Desktop.
Active Record Lifecycle
#The following is the order of the callbacks for a call to save (and save!) on a
#record that has never been saved before:
before_validation
before_validation :on => :create
after_validation
after_validation :on => :create
before_save
before_create
after_create
after_save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment