Skip to content

Commit

Permalink
[ci skip] Use touch; slim wording.
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
kaspth committed Jan 2, 2017
1 parent b92c0fa commit 4a36d81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/lib/active_record/counter_cache.rb
Expand Up @@ -21,8 +21,8 @@ module ClassMethods
# # 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)
Expand Down

0 comments on commit 4a36d81

Please sign in to comment.