Thursday, December 20, 2012

Rails 2.3 after_create callback doesn't rollback even if returned false

So, this is another mind-boggling thing i came across yesterday. I am working on rails 2.3.11

So i had some after_create callbacks on my app's Order model.

The problem i faced was even when the callbacks would fail, the order was still created and the changes would't ROLLBACK!!