Skip to content

Commit

Permalink
Merge pull request rails#12648 from chrisledet/patch-1
Browse files Browse the repository at this point in the history
Fixed typo with after_commit docs
  • Loading branch information
rafaelfranca committed Oct 25, 2013
2 parents dc8fac1 + 6f51194 commit db61355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/lib/active_record/transactions.rb
Expand Up @@ -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.
Expand Down

0 comments on commit db61355

Please sign in to comment.