diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-01-31 23:13:24 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-01-31 23:13:24 +0100 |
commit | 5c9cccaf25888836aacbca24dbbe8e94d0d61eac (patch) | |
tree | 8e949e208299db3cd05d4dec4d5105f280554be1 | |
parent | d6e0eeb1c68696316d2648366816688a95704351 (diff) | |
parent | 8d25a8aa8c1f67603ad9aaff397bca729afeed1e (diff) | |
download | rails-5c9cccaf25888836aacbca24dbbe8e94d0d61eac.tar.gz rails-5c9cccaf25888836aacbca24dbbe8e94d0d61eac.tar.bz2 rails-5c9cccaf25888836aacbca24dbbe8e94d0d61eac.zip |
Merge pull request #23387 from mcfiredrill/clarify-touching-callbacks
clarify the touch true option does not trigger after_save/update [ci skip]
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index f6d8e8a342..e13fe33b85 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1593,6 +1593,8 @@ module ActiveRecord # If true, the associated object will be touched (the updated_at/on attributes set to current time) # when this record is either saved or destroyed. If you specify a symbol, that attribute # will be updated with the current time in addition to the updated_at/on attribute. + # Please note that with touching no validation is performed and only the +after_touch+, + # +after_commit+ and +after_rollback+ callbacks are executed. # [:inverse_of] # Specifies the name of the #has_one or #has_many association on the associated # object that is the inverse of this #belongs_to association. Does not work in |