Created
June 24, 2013 13:40
-
-
Save rafaeljesus/5850123 to your computer and use it in GitHub Desktop.
Active Record Lifecycle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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