Permalink
Browse files

Fixed typo with after_commit docs

Fixed syntax error on `after_commit` docs
  • Loading branch information...
1 parent dc8fac1 commit 6f511943f8f9380b180536269f51e42b6e9e695c @chrisledet chrisledet 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 6f51194

Please sign in to comment.