Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Commit dc1bf23

Browse files
authored
[ruby/rails] Map attributes instead of World objects (#10730)
1 parent c9fd0f5 commit dc1bf23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frameworks/Ruby/rails/app/controllers/hello_world_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def db
1414

1515
def query
1616
results = ALL_IDS.sample(query_count).map do |id|
17-
World.find(id)
17+
World.find(id).attributes
1818
end
1919

2020
render json: results

0 commit comments

Comments
 (0)