I was able to find the order the callbacks are kicked off here but it does not say if it is dynamic (if self.errors.any? stop callback chain). Does anyone know if before_create is called only if all validations are passed? Or have any links for in depth walk through on this process.
Share
Your initial hunch is correct.
before_createis only called if validations pass. This is easily observed in your original link by looking at the callback lifecycle:If at any point a callback, validations, or save fail, then the later parts of the validate/save cycle are not run.