diff options
author | Jon Atack <jonnyatack@gmail.com> | 2015-03-27 15:36:44 +0530 |
---|---|---|
committer | Jon Atack <jonnyatack@gmail.com> | 2015-03-27 15:36:44 +0530 |
commit | fe6de0f023ba2632cb2c0ee3e85b59b0eb1b353a (patch) | |
tree | 26ed307384b2170db5d2a9641f0ce9bf314637a2 /activerecord/lib/active_record/core.rb | |
parent | a1671afcd420948db20ae7265f667966091c79e9 (diff) | |
download | rails-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/core.rb')
-rw-r--r-- | activerecord/lib/active_record/core.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index a17eb226f4..09d7ac374a 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -96,10 +96,10 @@ module ActiveRecord ## # :singleton-method: - # Specify a threshold for the size of query result sets. If the - # number of records in the set exceeds threshold, a warning is - # logged. This should be used to identify queries which pull - # thousands of records, which may cause memory bloat. + # Specify a threshold for the size of query result sets. If the number of + # records in the set exceeds the threshold, a warning is logged. This can + # be used to identify queries which load thousands of records and + # potentially cause memory bloat. mattr_accessor :warn_on_records_fetched_greater_than, instance_writer: false self.warn_on_records_fetched_greater_than = nil |