From 473fc304b8169fc43697371aa05d4e137d31bd5c Mon Sep 17 00:00:00 2001 From: Niklas Sombert Date: Mon, 8 Apr 2024 18:33:15 +0200 Subject: [PATCH] :sparkles: Order drinks by caffeine --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index c222ec24..d0e6f383 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -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