From c0269b102dd67ee3a5573b53abcbff15c0301a6e Mon Sep 17 00:00:00 2001 From: Petrik Date: Sat, 7 Feb 2026 21:52:36 +0100 Subject: [PATCH] [ruby/grape] map attributes instead of World objects --- frameworks/Ruby/grape/hello_world.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/Ruby/grape/hello_world.rb b/frameworks/Ruby/grape/hello_world.rb index bb7c9ef9d38..56f8f858ef7 100644 --- a/frameworks/Ruby/grape/hello_world.rb +++ b/frameworks/Ruby/grape/hello_world.rb @@ -48,7 +48,7 @@ def rand1 get '/query' do ActiveRecord::Base.with_connection do ALL_IDS.sample(bounded_queries).map do |id| - World.find(id) + World.find(id).attributes end end end