Skip to content
This repository was archived by the owner on May 19, 2022. It is now read-only.

Conversation

@gando001
Copy link

No description provided.

Copy link
Owner

@proglottis proglottis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey. This is cool! But I think the feature would be better placed as a "Create confirmed game" feature, rather than confirming an already created game. Perhaps a checkbox that only appears for tournament owners.

confirmed = 0
game_ranks.each do |game_rank|
game_rank.confirm if game_rank.user == user
game_rank.confirm if game_rank.user == current_user || tournament.owner == current_user
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Games are setup to support more than 2 players. This would mean a tournament owner could never confirm their own game rank without confirming the whole thing.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah was only looking at this from a 2 player game

def index
end

def confirm
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is already in this controller in #update. Is the intention not to send notifications in this case?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😕 app/controllers/games_controller.rb has an #update action but not the tournament one

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants