Skip to content

Commit

Permalink
Strip whitespace from group_name
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxagon committed Feb 23, 2024
1 parent 6ffd408 commit 0db6418
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/matchmaking_groups_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0db6418

Please sign in to comment.