4 ms·
"The whole callback chain is wrapped in a transaction. If any before callback method returns exactly false or raises an exception, the execution chain gets halt
by rohitarondekar 15y ago
"The whole callback chain is wrapped in a transaction. If any before callback method returns exactly false or raises an exception, the execution chain gets halted and a ROLLBACK is issued; after callbacks can only accomplish that by raising an exception."
― http://guides.rubyonrails.org/active_record_validations_callbacks.html#halting-execution http://guides.rubyonrails.org/active_record_validations_call...
- jshen 15y agoI'm not sure what your point is. He was talking about after_commit callbacks. Your quote is about the callbacks during a transaction, not after it.