Skip to content

Commit

Permalink
✨ Order drinks by caffeine
Browse files Browse the repository at this point in the history
  • Loading branch information
YtvwlD committed Apr 8, 2024
1 parent 46840e2 commit 473fc30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def index
# GET /users/1
def show
@user = User.find(params[:id])
@drinks = Drink.order(active: :desc).order_by_name_asc
@drinks = Drink.order(active: :desc).order(caffeine: :asc).order_by_name_asc
@wrapped = nil
if @user.audit
if Date.today.month == 12
Expand Down

0 comments on commit 473fc30

Please sign in to comment.