diff options
author | Washington Luiz <huoxito@gmail.com> | 2014-03-14 19:44:07 -0300 |
---|---|---|
committer | Washington Luiz <huoxito@gmail.com> | 2014-03-14 20:21:39 -0300 |
commit | a215ca63355d7c404db6d2daae868a80c0aa23b6 (patch) | |
tree | 12d76811c1de313a5bfdab4574ff681a3cbba294 /activerecord/lib/active_record | |
parent | b4c96490eeb1fbb944e116c7703dd528b37fc08a (diff) | |
download | rails-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')
-rw-r--r-- | activerecord/lib/active_record/persistence.rb | 4 |
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. # |