Pietro
Not a member
Pietro's latest activity
Sunday, September 19 2010
5650
callbacks execution order reversed in after_*
was updated
in Ruby on Rails
-
Pietro commented at 7:59 PMI think the code came from
commit 21e7b8462113fc7c0fd1882dcc2bf7225de67b1a
Author: Joshua Peek
Date: Mon Oct 12 22:15:43 2009 -0500Callbacks, DeprecatedCallbac...
-
Pietro commented at 7:36 PM@Neeraj
Here is the patch.
I'll try to find in git history when the reverse_each
first appeared. -
Pietro commented at 6:49 PMIn activesupport-3.0.0/lib/active_support/callbacks.rb
there is only one "reverse" (method "compile" in class "CallbackChain")changing
reverse_each do |callba...
Saturday, September 18 2010
5650
callbacks execution order reversed in after_*
was created
in Ruby on Rails
-
Pietro created the ticket at 12:30 AMIn 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, :bbdef aa; puts "a"; ...