aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/record_fetch_warning.rb
diff options
context:
space:
mode:
authorJon Atack <jonnyatack@gmail.com>2015-03-27 15:36:44 +0530
committerJon Atack <jonnyatack@gmail.com>2015-03-27 15:36:44 +0530
commitfe6de0f023ba2632cb2c0ee3e85b59b0eb1b353a (patch)
tree26ed307384b2170db5d2a9641f0ce9bf314637a2 /activerecord/lib/active_record/relation/record_fetch_warning.rb
parenta1671afcd420948db20ae7265f667966091c79e9 (diff)
downloadrails-fe6de0f023ba2632cb2c0ee3e85b59b0eb1b353a.tar.gz
rails-fe6de0f023ba2632cb2c0ee3e85b59b0eb1b353a.tar.bz2
rails-fe6de0f023ba2632cb2c0ee3e85b59b0eb1b353a.zip
[skip ci] Improve `warn_on_records_fetched` documentation
- ‘dection’ -> ‘detection’ - ‘exceeds threshold’ -> ‘exceeds the threshold’ - Other minor improvements.
Diffstat (limited to 'activerecord/lib/active_record/relation/record_fetch_warning.rb')
-rw-r--r--activerecord/lib/active_record/relation/record_fetch_warning.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/relation/record_fetch_warning.rb b/activerecord/lib/active_record/relation/record_fetch_warning.rb
index 0d31f73ddd..14e1bf89fa 100644
--- a/activerecord/lib/active_record/relation/record_fetch_warning.rb
+++ b/activerecord/lib/active_record/relation/record_fetch_warning.rb
@@ -5,9 +5,8 @@ module ActiveRecord
# `config.active_record.warn_on_records_fetched_greater_than` is
# set to an integer, if the number of records a query returns is
# greater than the value of `warn_on_records_fetched_greater_than`,
- # a warning is logged. This allows for the dection of queries that
- # return a large number of records, which could cause memory
- # bloat.
+ # a warning is logged. This allows for the detection of queries that
+ # return a large number of records, which could cause memory bloat.
#
# In most cases, fetching large number of records can be performed
# efficiently using the ActiveRecord::Batches methods.