Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using multiple callbacks for Rails (:after_commit)?

Would there be conflicts if I have multiple callbacks of the same nature in Rails? Like several after_commit for the same model?

I guess I can join them into one method, but for readability reasons, I would rather not..

like image 291
Stpn Avatar asked Oct 02 '12 19:10

Stpn


1 Answers

No they will be executed one after another

after_commit :callback_one, :callback_two
like image 70
iouri Avatar answered Oct 12 '22 11:10

iouri