diff options
author | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2013-12-12 18:28:34 +0530 |
---|---|---|
committer | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2013-12-12 18:28:34 +0530 |
commit | 5fccd77b6c71e26fcbf879657c1f532999171900 (patch) | |
tree | 12a35acd93877bb547bdbef986a2ee202fc5312d /activerecord/lib | |
parent | 5c5d5080b7ea008f0b4a5bf2e65bb22d24094cea (diff) | |
download | rails-5fccd77b6c71e26fcbf879657c1f532999171900.tar.gz rails-5fccd77b6c71e26fcbf879657c1f532999171900.tar.bz2 rails-5fccd77b6c71e26fcbf879657c1f532999171900.zip |
Spelling and Grammar checks
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/counter_cache.rb | 8 | ||||
-rw-r--r-- | activerecord/lib/active_record/errors.rb | 2 |
2 files changed, 5 insertions, 5 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 # diff --git a/activerecord/lib/active_record/errors.rb b/activerecord/lib/active_record/errors.rb index 7e38719811..2602f79db9 100644 --- a/activerecord/lib/active_record/errors.rb +++ b/activerecord/lib/active_record/errors.rb @@ -188,7 +188,7 @@ module ActiveRecord end end - # Raised when a primary key is needed, but there is not one specified in the schema or model. + # Raised when a primary key is needed, but not specified in the schema or model. class UnknownPrimaryKey < ActiveRecordError attr_reader :model |