aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations.rb
diff options
context:
space:
mode:
authorGuo Xiang Tan <tgx_world@hotmail.com>2014-07-15 11:44:04 +0800
committerGuo Xiang Tan <tgx_world@hotmail.com>2014-07-15 11:46:12 +0800
commit390a45e5342ea8307a87b0e57e455a0f3cb6a5e7 (patch)
treef5c7077a3b7e1fda60c6b44f2f72305693565220 /activerecord/lib/active_record/associations.rb
parent85343d95057daff33b7f905c5983769e72350ead (diff)
downloadrails-390a45e5342ea8307a87b0e57e455a0f3cb6a5e7.tar.gz
rails-390a45e5342ea8307a87b0e57e455a0f3cb6a5e7.tar.bz2
rails-390a45e5342ea8307a87b0e57e455a0f3cb6a5e7.zip
[CI SKIP] Doc fix.
Diffstat (limited to 'activerecord/lib/active_record/associations.rb')
-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