From c2866f832d8e26b538234f950e95cb555cfed145 Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 2 Aug 2023 16:24:27 -0700 Subject: [PATCH] Fix missing attribute error on homepage Whoops, this has just always been wrong, right? I wonder what used to happen. Did it send extra queries??? --- app/controllers/outfits_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/outfits_controller.rb b/app/controllers/outfits_controller.rb index d13a7f7c..d7eb61d2 100644 --- a/app/controllers/outfits_controller.rb +++ b/app/controllers/outfits_controller.rb @@ -55,11 +55,11 @@ class OutfitsController < ApplicationController @newest_unmodeled_items_predicted_modeled_ratio = {} @newest_unmodeled_items.each do |item| h = item.predicted_missing_nonstandard_body_ids_by_species_by_color( - Color.includes(:translations).select([:id]), - Species.includes(:translations).select([:id])) + Color.includes(:translations), + Species.includes(:translations)) standard_body_ids_by_species = item. predicted_missing_standard_body_ids_by_species( - Species.select([:id]).includes(:translations)) + Species.includes(:translations)) if standard_body_ids_by_species.present? h[:standard] = standard_body_ids_by_species end