diff --git a/app/controllers/rooms_controller.rb b/app/controllers/rooms_controller.rb index 525f5c77..c179440f 100644 --- a/app/controllers/rooms_controller.rb +++ b/app/controllers/rooms_controller.rb @@ -127,6 +127,12 @@ class RoomsController < ApplicationController end helper_method :recording_length + # Prevents single images from erroring when not passed as an array. + def safe_recording_images(images) + Array.wrap(images) + end + helper_method :safe_recording_images + private def room_params diff --git a/app/views/shared/components/_recording_row.html.erb b/app/views/shared/components/_recording_row.html.erb index c1576f0e..bd580bd9 100644 --- a/app/views/shared/components/_recording_row.html.erb +++ b/app/views/shared/components/_recording_row.html.erb @@ -8,7 +8,7 @@