Skip to content

Commit 30f4876

Browse files
authored
[rails] Render fortune explicit (#9485)
This should be slightly faster than deducing how to render.
1 parent f91d4cc commit 30f4876

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def fortune
3030
@fortunes = Fortune.all.to_a
3131
@fortunes << Fortune.new(id: 0, message: 'Additional fortune added at request time.')
3232
@fortunes.sort_by!(&:message)
33+
render :fortune
3334
end
3435

3536
def update

0 commit comments

Comments
 (0)