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