From 4a36d81385bb78064fd3ebe0b35c9430017f7971 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Mon, 2 Jan 2017 08:48:44 +0100 Subject: [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. --- activerecord/lib/active_record/counter_cache.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/lib/active_record') 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) -- cgit v1.2.3