diff options
author | Chris Ledet <chrisledet@users.noreply.github.com> | 2013-10-25 16:59:48 -0400 |
---|---|---|
committer | Chris Ledet <chrisledet@users.noreply.github.com> | 2013-10-25 16:59:48 -0400 |
commit | 6f511943f8f9380b180536269f51e42b6e9e695c (patch) | |
tree | 9f09d328e791daaf04122d159b2f888c06a9fda5 /activerecord | |
parent | dc8fac1cacb120dc2535b67bdd6436d220901c7a (diff) | |
download | rails-6f511943f8f9380b180536269f51e42b6e9e695c.tar.gz rails-6f511943f8f9380b180536269f51e42b6e9e695c.tar.bz2 rails-6f511943f8f9380b180536269f51e42b6e9e695c.zip |
Fixed typo with after_commit docs
Fixed syntax error on `after_commit` docs
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/transactions.rb | 4 |
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. |