From 09e5a39b4cd84623bbc1477d23b2956b8767a512 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Fri, 18 Oct 2024 19:16:41 -0700 Subject: [PATCH] Whoops, fix alt styles when modeling real pets wearing them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just never did this, I guess!! 😅 --- app/models/pet.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/pet.rb b/app/models/pet.rb index c716f273..0299a05c 100644 --- a/app/models/pet.rb +++ b/app/models/pet.rb @@ -78,6 +78,7 @@ class Pet < ApplicationRecord pose: self.pet_state.pose, state: self.pet_state.id, objects: self.items.map(&:id), + style: self.alt_style ? self.alt_style.id : nil, }.to_query end