aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/counter_cache.rb
diff options
context:
space:
mode:
authorAkshay Vishnoi <akshay.vishnoi@vinsol.com>2013-12-12 18:28:34 +0530
committerAkshay Vishnoi <akshay.vishnoi@vinsol.com>2013-12-12 18:28:34 +0530
commit5fccd77b6c71e26fcbf879657c1f532999171900 (patch)
tree12a35acd93877bb547bdbef986a2ee202fc5312d /activerecord/lib/active_record/counter_cache.rb
parent5c5d5080b7ea008f0b4a5bf2e65bb22d24094cea (diff)
downloadrails-5fccd77b6c71e26fcbf879657c1f532999171900.tar.gz
rails-5fccd77b6c71e26fcbf879657c1f532999171900.tar.bz2
rails-5fccd77b6c71e26fcbf879657c1f532999171900.zip
Spelling and Grammar checks
Diffstat (limited to 'activerecord/lib/active_record/counter_cache.rb')
-rw-r--r--activerecord/lib/active_record/counter_cache.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/counter_cache.rb b/activerecord/lib/active_record/counter_cache.rb
index 7e3bef9431..dcbdf75627 100644
--- a/activerecord/lib/active_record/counter_cache.rb
+++ b/activerecord/lib/active_record/counter_cache.rb
@@ -82,10 +82,10 @@ module ActiveRecord
# Increment a numeric field by one, via a direct SQL update.
#
- # This method is used primarily for maintaining counter_cache columns used to
- # store aggregate values. For example, a DiscussionBoard may cache posts_count
- # and comments_count to avoid running an SQL query to calculate the number of
- # posts and comments there are each time it is displayed.
+ # This method is used primarily for maintaining counter_cache columns that are
+ # used to store aggregate values. For example, a DiscussionBoard may cache
+ # posts_count and comments_count to avoid running an SQL query to calculate the
+ # number of posts and comments there are, each time it is displayed.
#
# ==== Parameters
#