aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_querying.md
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-09-26 22:49:42 +0930
committerGitHub <noreply@github.com>2017-09-26 22:49:42 +0930
commitbdc3fc70bdedf3a5946cb5d641e5f5ba6a81bdc0 (patch)
tree485df7f966eaf0844e97a05da5070902b5bd5ab8 /guides/source/active_record_querying.md
parent1bb106c0b7b918606a7e94a6abb6ade364cc4270 (diff)
parent8f24923d7ad3c838437fba2ee3e5eee655660bbc (diff)
downloadrails-bdc3fc70bdedf3a5946cb5d641e5f5ba6a81bdc0.tar.gz
rails-bdc3fc70bdedf3a5946cb5d641e5f5ba6a81bdc0.tar.bz2
rails-bdc3fc70bdedf3a5946cb5d641e5f5ba6a81bdc0.zip
Merge pull request #30724 from hupfis/patch-1
Fix typo in 'find_in_batches' example
Diffstat (limited to 'guides/source/active_record_querying.md')
-rw-r--r--guides/source/active_record_querying.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md
index 678b80516f..3573c3c77b 100644
--- a/guides/source/active_record_querying.md
+++ b/guides/source/active_record_querying.md
@@ -414,7 +414,7 @@ end
`find_in_batches` works on model classes, as seen above, and also on relations:
```ruby
-Invoice.pending.find_in_batches do |invoice|
+Invoice.pending.find_in_batches do |invoices|
pending_invoices_export.add_invoices(invoices)
end
```