Skip to content

Commit

Permalink
LTI-143: fixed issue with default values on new launch after refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jfederico committed Aug 16, 2022
1 parent 6385b1e commit 77d3c75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/controllers/rooms_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 77d3c75

Please sign in to comment.