diff --git a/app/controllers/matchmaking_groups_controller.rb b/app/controllers/matchmaking_groups_controller.rb index 065a353..598dbbd 100644 --- a/app/controllers/matchmaking_groups_controller.rb +++ b/app/controllers/matchmaking_groups_controller.rb @@ -48,5 +48,8 @@ def destroy def group_params params.require(:matchmaking_group) .permit(:name, :slack_channel_name, :schedule, :target_size, :is_active) + .tap do |hash| + hash[:name] = hash[:name].strip + end end end