From 6cb448abeaeefb08e625eaf7d6d00262fb40a684 Mon Sep 17 00:00:00 2001 From: Uzzal Devkota Date: Fri, 3 Mar 2023 18:16:46 +0545 Subject: [PATCH] Fix each_instance syntax --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 27f479c..e3d13b0 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ To limit the columns returned to just those you need, use `.select(:id, :name)` query method. ```ruby -Product.select(:id, :name).each_row { |product| product.process } +Product.select(:id, :name).each_instance { |product| product.process } ``` Pluck is a great alternative instead of using a cursor. It does not instantiate