Reputation: 31
The API Doc says that this callback is deprecated since version 2.3.8, and I'm using Rails 4.2 , is there any existent function that resembles it?
Upvotes: 1
Views: 519
Reputation: 195
Now you can use "after_commit" instead of "after_destroy"
after_commit :do_baz, on: :destroy
Please refer to this link rails doc