1
0
Fork 0
forked from OpenNeo/impress

Use fewer SQL queries to get species for species face picker

This commit is contained in:
Emi Matchu 2024-09-05 17:39:47 -07:00
parent 4d5b583432
commit 0305817cec

View file

@ -95,7 +95,7 @@ class ItemsController < ApplicationController
sort_by { |z, a| z.label } sort_by { |z, a| z.label }
@preview_pet_type_options = PetType.where(color: @preview_outfit.color). @preview_pet_type_options = PetType.where(color: @preview_outfit.color).
joins(:species).merge(Species.alphabetical) includes(:species).merge(Species.alphabetical)
end end
format.gif do format.gif do