aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-09-25 18:30:56 -0400
committerJosé Valim <jose.valim@gmail.com>2010-09-27 23:11:31 +0200
commit72c1e19c33ca06008d5d64619a533bdf34e3fc2b (patch)
treedba67d430b40d7e65e6baca4bc97381c3c279897 /activesupport/lib
parent72f37bd8bc5b3beb1e8a2d1ac2de2c045cd0cfd2 (diff)
downloadrails-72c1e19c33ca06008d5d64619a533bdf34e3fc2b.tar.gz
rails-72c1e19c33ca06008d5d64619a533bdf34e3fc2b.tar.bz2
rails-72c1e19c33ca06008d5d64619a533bdf34e3fc2b.zip
after_create in ActiveModel should in the order specified
[#5650 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/callbacks.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb
index d811c3b2f0..0c1d46c7ec 100644
--- a/activesupport/lib/active_support/callbacks.rb
+++ b/activesupport/lib/active_support/callbacks.rb
@@ -482,7 +482,7 @@ module ActiveSupport
chain.delete_if {|c| c.matches?(type, filter) }
end
- options[:prepend] ? chain.unshift(*mapped) : chain.push(*mapped)
+ options[:prepend] ? chain.unshift(*(mapped.reverse)) : chain.push(*mapped)
end
end