HKD
HKD

Reputation: 31

What can i use instead of after_destroy in ruby on rails?

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

Answers (1)

srinij
srinij

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

Upvotes: 1

Related Questions