aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-01-01 22:53:23 -0500
committerGitHub <noreply@github.com>2017-01-01 22:53:23 -0500
commitfadc0dc151e9e010cf5cfa0e05d4427eb1be321c (patch)
treeec2752d74e5abb2686eca7def61d669a87f0e275 /activerecord
parente7b84e7081631b13cc9a6f436e6cead335a78f28 (diff)
parent3fc7133b2466fbd71d762e085f1ebe8a60718ab4 (diff)
downloadrails-fadc0dc151e9e010cf5cfa0e05d4427eb1be321c.tar.gz
rails-fadc0dc151e9e010cf5cfa0e05d4427eb1be321c.tar.bz2
rails-fadc0dc151e9e010cf5cfa0e05d4427eb1be321c.zip
Merge pull request #27541 from kenta-s/fix-grammar-in-counter_cache_rb
Fix grammar in active_record/counter_cache.rb [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/counter_cache.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/counter_cache.rb b/activerecord/lib/active_record/counter_cache.rb
index a0ef430683..88ac10bffd 100644
--- a/activerecord/lib/active_record/counter_cache.rb
+++ b/activerecord/lib/active_record/counter_cache.rb
@@ -18,11 +18,11 @@ module ActiveRecord
#
# ==== Examples
#
- # # For Post with id #1 records reset the comments_count
+ # # For the Post with id #1, reset the comments_count
# Post.reset_counters(1, :comments)
#
- # # For Post with id #1 records reset the comments_count
- # # and updates the +updated_at+ and/or +updated_on+ attributes.
+ # # For the Post with id #1, reset the comments_count
+ # # and update 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)