Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我在 Rails 中有多个相同性质的回调,会有冲突吗?像同一个模型的几个 after_commit ?
我想我可以将它们加入一种方法,但出于可读性原因,我宁愿不......
不,他们会一个接一个地被处决
after_commit :callback_one, :callback_two