From cd095eefcbd367920bac6c6ff2fd4d9fefae1b35 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Sat, 24 Feb 2024 16:14:30 -0800 Subject: [PATCH] Oops, fix crashing bug when loading item appearances endpoint I missed this because it's only for backgrounds and stuff! But yeah I added a prefix to the `Body` struct, and forgot to apply it everywhere, oops! --- app/models/item.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/item.rb b/app/models/item.rb index af030b0a..772e04b0 100644 --- a/app/models/item.rb +++ b/app/models/item.rb @@ -459,7 +459,7 @@ class Item < ApplicationRecord # If there are no body-specific assets, return one appearance for them all. if swf_assets_by_body_id.empty? - body = Body.new(0, nil) + body = Appearance::Body.new(0, nil) return [Appearance.new(body, swf_assets_for_all_bodies)] end