Skip to content

Commit

Permalink
[rails] Render fortune explicit
Browse files Browse the repository at this point in the history
This should be slightly faster than deducing how to render.
  • Loading branch information
p8 committed Dec 27, 2024
1 parent bca3822 commit 51d8b0b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def fortune
@fortunes = Fortune.all.to_a
@fortunes << Fortune.new(id: 0, message: 'Additional fortune added at request time.')
@fortunes.sort_by!(&:message)
render :fortune
end

def update
Expand Down

0 comments on commit 51d8b0b

Please sign in to comment.