aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/persistence.rb
diff options
context:
space:
mode:
authorWashington Luiz <huoxito@gmail.com>2014-03-14 19:44:07 -0300
committerWashington Luiz <huoxito@gmail.com>2014-03-14 20:21:39 -0300
commita215ca63355d7c404db6d2daae868a80c0aa23b6 (patch)
tree12d76811c1de313a5bfdab4574ff681a3cbba294 /activerecord/lib/active_record/persistence.rb
parentb4c96490eeb1fbb944e116c7703dd528b37fc08a (diff)
downloadrails-a215ca63355d7c404db6d2daae868a80c0aa23b6.tar.gz
rails-a215ca63355d7c404db6d2daae868a80c0aa23b6.tar.bz2
rails-a215ca63355d7c404db6d2daae868a80c0aa23b6.zip
Update callbacks executed on AR::Base#touch [skip ci]
As of https://github.com/rails/rails/pull/12031 after_commit and after_rollback are also executed
Diffstat (limited to 'activerecord/lib/active_record/persistence.rb')
-rw-r--r--activerecord/lib/active_record/persistence.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index 4e63206cf4..d85fad1e13 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -405,8 +405,8 @@ module ActiveRecord
end
# Saves the record with the updated_at/on attributes set to the current time.
- # Please note that no validation is performed and only the +after_touch+
- # callback is executed.
+ # Please note that no validation is performed and only the +after_touch+,
+ # +after_commit+ and +after_rollback+ callbacks are executed.
# If an attribute name is passed, that attribute is updated along with
# updated_at/on attributes.
#