Permalink
Browse files

Update callbacks executed on AR::Base#touch [skip ci]

As of #12031 after_commit and
after_rollback are also executed
  • Loading branch information...
1 parent b4c9649 commit a215ca63355d7c404db6d2daae868a80c0aa23b6 @huoxito huoxito committed Mar 14, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/persistence.rb
View
4 activerecord/lib/active_record/persistence.rb
@@ -405,8 +405,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.
#

0 comments on commit a215ca6

Please sign in to comment.