我最近发现after_commit在同一模型中定义的多个s 以相反的顺序被调用。例如
after_commit
after_commit method1, :on => :create after_commit method2, :on => :create
method2之前被调用method1。
method2
method1
它总是按 FILO 顺序调用吗?
ruby-on-rails-3
ruby-on-rails-3 ×1