From 5811af5da9b97069457e997af43dd17333ac0055 Mon Sep 17 00:00:00 2001 From: ouyangjinting <2729877005@qq.com> Date: Sat, 8 May 2021 16:56:03 +0800 Subject: [PATCH] [ci-skip] fix docs for ActiveRecord select_all --- guides/source/active_record_querying.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md index d69f239b6a..685dd90847 100644 --- a/guides/source/active_record_querying.md +++ b/guides/source/active_record_querying.md @@ -1992,7 +1992,7 @@ This method will return an instance of `ActiveRecord::Result` class and calling object would return you an array of hashes where each hash indicates a record. ```irb -irb> Customer.connection.select_all("SELECT first_name, created_at FROM customers WHERE id = '1'").to_hash +irb> Customer.connection.select_all("SELECT first_name, created_at FROM customers WHERE id = '1'").to_a => [{"first_name"=>"Rafael", "created_at"=>"2012-11-10 23:23:45.281189"}, {"first_name"=>"Eileen", "created_at"=>"2013-12-09 11:22:35.221282"}] ```