Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: elpassion/elranks
base: 199086d727
...
head fork: elpassion/elranks
compare: 3be31ca926
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/controllers/matches_controller.rb
View
2  app/controllers/matches_controller.rb
@@ -3,6 +3,7 @@ class MatchesController < InheritedResources::Base
def confirm
match = Match.finished.where(id: params[:id]).first
+ redirect_to root_path and return if match.nil?
competitor = match.get_competitor(current_player)
if !competitor.nil? && competitor.can_confirm_match?
match.confirm!
@@ -42,5 +43,4 @@ def away
def home
params['match'] && params['match']['home']
end
-
end

No commit comments for this range

Something went wrong with that request. Please try again.