aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-12-21 17:39:03 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-12-21 17:39:03 -0300
commitecc77515754b15e5a2d794832ec4a5286cabdfe5 (patch)
treeee40fb03408f925bc169dc8fba0751b926d28912 /activesupport/CHANGELOG.md
parentbda1937f285d3114c2b2300b86c23f19db88de79 (diff)
parent4a9644a0d94a88896e1ebd3329b8f796fbd053d1 (diff)
downloadrails-ecc77515754b15e5a2d794832ec4a5286cabdfe5.tar.gz
rails-ecc77515754b15e5a2d794832ec4a5286cabdfe5.tar.bz2
rails-ecc77515754b15e5a2d794832ec4a5286cabdfe5.zip
Merge pull request #7376 from dmitriy-kiriyenko/fix-double-callback-in-same-statement
Prevent callback from being set twice. Conflicts: activesupport/CHANGELOG.md
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r--activesupport/CHANGELOG.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index 1d11ae2afd..41fde553fb 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,5 +1,14 @@
## Rails 4.0.0 (unreleased) ##
+* Prevent `Callbacks#set_callback` from setting the same callback twice.
+
+ before_save :foo, :bar, :foo
+
+ will at first call `bar`, then `foo`. `foo` will no more be called
+ twice.
+
+ *Dmitriy Kiriyenko*
+
* Add ActiveSupport::Logger#silence that works the same as the old Logger#silence extension.
*DHH*