aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-02-21 14:54:17 +0100
committerYves Senn <yves.senn@gmail.com>2013-02-21 15:02:52 +0100
commitd98763a602ecffa1d375fa974d7c5de8b1145358 (patch)
tree9496be3ba3800210590d58c2d7e42c853421368b /activerecord/CHANGELOG.md
parentb0fa9b59c8c9cac52d4eb4d8d984b85d4a753e97 (diff)
downloadrails-d98763a602ecffa1d375fa974d7c5de8b1145358.tar.gz
rails-d98763a602ecffa1d375fa974d7c5de8b1145358.tar.bz2
rails-d98763a602ecffa1d375fa974d7c5de8b1145358.zip
multiple actions for :on option with `after_commit` and `after_rollback`
Closes #988.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 3410f38063..8e51fdf199 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,13 @@
## Rails 4.0.0 (unreleased) ##
+* The `:on` option for `after_commit` and `after_rollback` now
+ accepts an Array of actions.
+ Fixes #988.
+
+ Example:
+
+ after_commit :update_cache on: [:create, :update]
+
* Rename related indexes on `rename_table` and `rename_column`. This
does not affect indexes with custom names.