This project is archived and is in readonly mode.

#5650 ✓resolved
Pietro

callbacks execution order reversed in after_*

Reported by Pietro | September 18th, 2010 @ 12:30 AM | in 3.0.2

In rails 3.0.0 the callbacks "after_*" executes
the methods in reverse order.

If in a model you have

before_save :aa, :bb
after_save :aa, :bb

def aa; puts "a"; end
def bb; puts "b"; end

saving the object you get

a
b
b
a

In rails 2.x the result was

a
b
a
b

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Tags

Referenced by

Pages