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.
This commit is contained in:
parent
133895b213
commit
eaab0b1922
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ class Item < ApplicationRecord
|
||||||
|
|
||||||
# If there are no body-specific assets, return one appearance for them all.
|
# If there are no body-specific assets, return one appearance for them all.
|
||||||
if swf_assets_by_body_id.empty?
|
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
|
end
|
||||||
|
|
||||||
# Otherwise, create an appearance for each real (nonzero) body ID. We don't
|
# Otherwise, create an appearance for each real (nonzero) body ID. We don't
|
||||||
|
|
Loading…
Reference in a new issue