aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-10-25 14:18:24 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-10-25 14:18:24 -0700
commitdb61355f7171819c078847337aa65f8d74aec4b8 (patch)
tree9f09d328e791daaf04122d159b2f888c06a9fda5
parentdc8fac1cacb120dc2535b67bdd6436d220901c7a (diff)
parent6f511943f8f9380b180536269f51e42b6e9e695c (diff)
downloadrails-db61355f7171819c078847337aa65f8d74aec4b8.tar.gz
rails-db61355f7171819c078847337aa65f8d74aec4b8.tar.bz2
rails-db61355f7171819c078847337aa65f8d74aec4b8.zip
Merge pull request #12648 from chrisledet/patch-1
Fixed typo with after_commit docs
-rw-r--r--activerecord/lib/active_record/transactions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/transactions.rb b/activerecord/lib/active_record/transactions.rb
index dcbf38a89f..45313b5e75 100644
--- a/activerecord/lib/active_record/transactions.rb
+++ b/activerecord/lib/active_record/transactions.rb
@@ -220,8 +220,8 @@ module ActiveRecord
# after_commit :do_bar, on: :update
# after_commit :do_baz, on: :destroy
#
- # after_commit :do_foo_bar, :on [:create, :update]
- # after_commit :do_bar_baz, :on [:update, :destroy]
+ # after_commit :do_foo_bar, on: [:create, :update]
+ # after_commit :do_bar_baz, on: [:update, :destroy]
#
# Note that transactional fixtures do not play well with this feature. Please
# use the +test_after_commit+ gem to have these hooks fired in tests.