Using multiple callbacks for Rails (: after_commit)?

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

I think I can combine them into one method, but for reasons of readability, I would rather not ..

+8
callback ruby-on-rails
source share
1 answer

No, they will be executed one by one.

after_commit :callback_one, :callback_two 
+16
source share

All Articles