aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorhupfis <dominik.hurnaus@gmail.com>2017-09-26 13:28:46 +0200
committerGitHub <noreply@github.com>2017-09-26 13:28:46 +0200
commit8f24923d7ad3c838437fba2ee3e5eee655660bbc (patch)
tree485df7f966eaf0844e97a05da5070902b5bd5ab8 /guides/source
parent1bb106c0b7b918606a7e94a6abb6ade364cc4270 (diff)
downloadrails-8f24923d7ad3c838437fba2ee3e5eee655660bbc.tar.gz
rails-8f24923d7ad3c838437fba2ee3e5eee655660bbc.tar.bz2
rails-8f24923d7ad3c838437fba2ee3e5eee655660bbc.zip
Fix typo in 'find_in_batches' example
Diffstat (limited to 'guides/source')
-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
```