aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2014-07-14 22:09:53 -0700
committerZachary Scott <e@zzak.io>2014-07-14 22:09:53 -0700
commit942b3a243403ae20b531ca5a77fcceda9fe6524d (patch)
treef5c7077a3b7e1fda60c6b44f2f72305693565220 /activerecord/lib/active_record
parent85343d95057daff33b7f905c5983769e72350ead (diff)
parent390a45e5342ea8307a87b0e57e455a0f3cb6a5e7 (diff)
downloadrails-942b3a243403ae20b531ca5a77fcceda9fe6524d.tar.gz
rails-942b3a243403ae20b531ca5a77fcceda9fe6524d.tar.bz2
rails-942b3a243403ae20b531ca5a77fcceda9fe6524d.zip
Merge pull request #16174 from tgxworld/doc_fix
[ci skip] Fix grammar of eager loading for ActiveRecord::Associations
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/associations.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 7870e01dc6..7ec7eb1b24 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -717,9 +717,9 @@ module ActiveRecord
# == Eager loading of associations
#
# Eager loading is a way to find objects of a certain class and a number of named associations.
- # This is one of the easiest ways of to prevent the dreaded 1+N problem in which fetching 100
+ # This is one of the easiest ways of to prevent the dreaded N+1 problem in which fetching 100
# posts that each need to display their author triggers 101 database queries. Through the
- # use of eager loading, the 101 queries can be reduced to 2.
+ # use of eager loading, the number of queries will be reduced from 101 to 2.
#
# class Post < ActiveRecord::Base
# belongs_to :author