diff options
author | Genadi Samokovarov <gsamokovarov@gmail.com> | 2016-01-20 18:21:46 +0200 |
---|---|---|
committer | Genadi Samokovarov <gsamokovarov@gmail.com> | 2016-01-20 18:21:46 +0200 |
commit | 933e11f8311e13c8d5e4355813ebcdbb50037ffc (patch) | |
tree | 91f36e265d8c5b3d0ed92abf383f03a278590aee /activerecord | |
parent | 4b507dff1e429c65b59cf6c506cdfa3adc44b141 (diff) | |
download | rails-933e11f8311e13c8d5e4355813ebcdbb50037ffc.tar.gz rails-933e11f8311e13c8d5e4355813ebcdbb50037ffc.tar.bz2 rails-933e11f8311e13c8d5e4355813ebcdbb50037ffc.zip |
Fix the API documentation layout of after_*_commit
Just noticed this on the [edge API].
[ci skip]
[edge API]: http://edgeapi.rubyonrails.org/classes/ActiveRecord/Transactions/ClassMethods.html
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/transactions.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/transactions.rb b/activerecord/lib/active_record/transactions.rb index 38ab1f3fc6..77c2845d88 100644 --- a/activerecord/lib/active_record/transactions.rb +++ b/activerecord/lib/active_record/transactions.rb @@ -233,19 +233,19 @@ module ActiveRecord set_callback(:commit, :after, *args, &block) end - # Shortcut for +after_commit :hook, on: :create+. + # Shortcut for <tt>after_commit :hook, on: :create</tt>. def after_create_commit(*args, &block) set_options_for_callbacks!(args, on: :create) set_callback(:commit, :after, *args, &block) end - # Shortcut for +after_commit :hook, on: :update+. + # Shortcut for <tt>after_commit :hook, on: :update</tt>. def after_update_commit(*args, &block) set_options_for_callbacks!(args, on: :update) set_callback(:commit, :after, *args, &block) end - # Shortcut for +after_commit :hook, on: :destroy+. + # Shortcut for <tt>after_commit :hook, on: :destroy</tt>. def after_destroy_commit(*args, &block) set_options_for_callbacks!(args, on: :destroy) set_callback(:commit, :after, *args, &block) |