forked from OpenNeo/impress
Use fewer SQL queries to get species for species face picker
This commit is contained in:
parent
4d5b583432
commit
0305817cec
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ class ItemsController < ApplicationController
|
|||
sort_by { |z, a| z.label }
|
||||
|
||||
@preview_pet_type_options = PetType.where(color: @preview_outfit.color).
|
||||
joins(:species).merge(Species.alphabetical)
|
||||
includes(:species).merge(Species.alphabetical)
|
||||
end
|
||||
|
||||
format.gif do
|
||||
|
|
Loading…
Reference in a new issue