aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGaurav Sharam <gaurav2728@gmail.com>2015-03-10 18:13:07 +0530
committerGaurav Sharam <gaurav2728@gmail.com>2015-03-10 18:13:07 +0530
commit434c768a7dbf46f7d127d63b825f6eec511b882a (patch)
tree976a4aa577706c0f7e0db257c7d1ad68b959bc9b
parent221e847a3bc4b6dc2559b4354417862b2e6c684a (diff)
downloadrails-434c768a7dbf46f7d127d63b825f6eec511b882a.tar.gz
rails-434c768a7dbf46f7d127d63b825f6eec511b882a.tar.bz2
rails-434c768a7dbf46f7d127d63b825f6eec511b882a.zip
‘test_after_commit’ gem is not required in Rails 5 remove note from doc
-rw-r--r--activerecord/lib/active_record/transactions.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/transactions.rb b/activerecord/lib/active_record/transactions.rb
index 514dd1f2f3..2293d1b258 100644
--- a/activerecord/lib/active_record/transactions.rb
+++ b/activerecord/lib/active_record/transactions.rb
@@ -227,8 +227,6 @@ module ActiveRecord
# 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.
def after_commit(*args, &block)
set_options_for_callbacks!(args)
set_callback(:commit, :after, *args, &block)
@@ -456,13 +454,13 @@ module ActiveRecord
end
# Updates the attributes on this particular ActiveRecord object so that
- # if it is associated with a transaction, then the state of the AR object
- # will be updated to reflect the current state of the transaction
+ # if it's associated with a transaction, then the state of the ActiveRecord
+ # object will be updated to reflect the current state of the transaction
#
# The @transaction_state variable stores the states of the associated
# transaction. This relies on the fact that a transaction can only be in
# one rollback or commit (otherwise a list of states would be required)
- # Each AR object inside of a transaction carries that transaction's
+ # Each ActiveRecord object inside of a transaction carries that transaction's
# TransactionState.
#
# This method checks to see if the ActiveRecord object's state reflects