diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-01-02 08:48:44 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2017-01-02 08:48:44 +0100 |
commit | 4a36d81385bb78064fd3ebe0b35c9430017f7971 (patch) | |
tree | 7c2c5a885f6ef9f00c37bb2f294d8da73e0a5031 | |
parent | b92c0fa86340739ae2625692a932537be8a8827d (diff) | |
download | rails-4a36d81385bb78064fd3ebe0b35c9430017f7971.tar.gz rails-4a36d81385bb78064fd3ebe0b35c9430017f7971.tar.bz2 rails-4a36d81385bb78064fd3ebe0b35c9430017f7971.zip |
[ci skip] Use touch; slim wording.
* Rename update -> touch to remain consistent with the other docs
language of "touch"'ing.
* Remove the sentence that's repeated from just above and rephrase.
-rw-r--r-- | activerecord/lib/active_record/counter_cache.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/counter_cache.rb b/activerecord/lib/active_record/counter_cache.rb index 88ac10bffd..c654d4703a 100644 --- a/activerecord/lib/active_record/counter_cache.rb +++ b/activerecord/lib/active_record/counter_cache.rb @@ -21,8 +21,8 @@ module ActiveRecord # # For the Post with id #1, reset the comments_count # Post.reset_counters(1, :comments) # - # # For the Post with id #1, reset the comments_count - # # and update the +updated_at+ and/or +updated_on+ attributes. + # # Like above, but also touch the +updated_at+ and/or +updated_on+ + # # attributes. # Post.reset_counters(1, :comments, touch: true) def reset_counters(id, *counters, touch: nil) object = find(id) |