Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit a215ca63355d7c404db6d2daae868a80c0aa23b6 1 parent b4c9649
Washington L Braga Jr huoxito authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/persistence.rb
4 activerecord/lib/active_record/persistence.rb
View
@@ -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.
#
Please sign in to comment.
Something went wrong with that request. Please try again.