From e28f6b73ab7f2e59605ebd800e921a6146fc49ae Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 10 Dec 2022 11:54:08 -0500 Subject: Updated to Rails 7.0.3 --- app/controllers/pokeviewer/pokemon_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/pokeviewer/pokemon_controller.rb b/app/controllers/pokeviewer/pokemon_controller.rb index 2c38e56..d0bf432 100644 --- a/app/controllers/pokeviewer/pokemon_controller.rb +++ b/app/controllers/pokeviewer/pokemon_controller.rb @@ -5,7 +5,7 @@ module Pokeviewer before_action :load_pokemon, only: [:show, :embed] def index - pokemon = Pokemon.order("trainer_id IS NULL DESC"). + pokemon = Pokemon.order(Arel.sql("trainer_id IS NULL DESC")). order(trainer_id: :asc). order(box: :asc). order(slot: :asc). -- cgit 1.4.1