Skip to content

Commit c0269b1

Browse files
committed
[ruby/grape] map attributes instead of World objects
1 parent e52b3e4 commit c0269b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frameworks/Ruby/grape/hello_world.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def rand1
4848
get '/query' do
4949
ActiveRecord::Base.with_connection do
5050
ALL_IDS.sample(bounded_queries).map do |id|
51-
World.find(id)
51+
World.find(id).attributes
5252
end
5353
end
5454
end

0 commit comments

Comments
 (0)