From eaab0b1922fe7db56a7e9048d812a23f699ca2df Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 11 Nov 2023 07:58:50 -0800 Subject: [PATCH] Oops, return an array in the all-bodies case I was returning just the body itself, oops! For consistency with the general return value, it should be a one-element array. --- 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 bb74e42c..4cbcb324 100644 --- a/app/models/item.rb +++ b/app/models/item.rb @@ -526,7 +526,7 @@ class Item < ApplicationRecord # If there are no body-specific assets, return one appearance for them all. if swf_assets_by_body_id.empty? - return Appearance.new(:all, swf_assets_for_all_bodies) + return [Appearance.new(:all, swf_assets_for_all_bodies)] end # Otherwise, create an appearance for each real (nonzero) body ID. We don't