Permalink
Browse files

Merge pull request #12648 from chrisledet/patch-1

Fixed typo with after_commit docs
  • Loading branch information...
2 parents dc8fac1 + 6f51194 commit db61355f7171819c078847337aa65f8d74aec4b8 @rafaelfranca rafaelfranca committed Oct 25, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/transactions.rb
@@ -220,8 +220,8 @@ def transaction(options = {}, &block)
# 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.

0 comments on commit db61355

Please sign in to comment.