From d0fe2ade1a84134d877e9bb68f2c412015250504 Mon Sep 17 00:00:00 2001 From: Prathamesh Sonpatki Date: Thu, 30 Oct 2014 19:53:39 +0530 Subject: [PATCH] Update documentation of touch method - Note that after_commit and after_rollback callbacks are also run. - This documentation update is present in master but not in rails-4-1 branch. - Closes #17438 [ci skip] --- activerecord/lib/active_record/persistence.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index 85aac0e18c05e..0aa1ba4a7f693 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -404,8 +404,8 @@ def reload(options = nil) 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. #