From 77d3c7584ea01d27247cd9c42fca310a17b5ae22 Mon Sep 17 00:00:00 2001 From: jfederico Date: Tue, 16 Aug 2022 11:18:59 -0400 Subject: [PATCH] LTI-143: fixed issue with default values on new launch after refactoring --- app/controllers/rooms_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/rooms_controller.rb b/app/controllers/rooms_controller.rb index 7754de55..c3432b27 100644 --- a/app/controllers/rooms_controller.rb +++ b/app/controllers/rooms_controller.rb @@ -253,14 +253,14 @@ def room_params params.require(:room).permit(:name, :description, :welcome, :moderator, :viewer, :recording, :wait_moderator, :all_moderators) end - def new_room_params(name, description, recording: true, wait_moderator: false, all_moderators: false) + def new_room_params(name, description, recording, wait_moderator, all_moderators) params.permit.merge( name: name, description: description, welcome: '', - recording: recording, - wait_moderator: wait_moderator, - all_moderators: all_moderators + recording: recording || true, + wait_moderator: wait_moderator || false, + all_moderators: all_moderators || false ) end