mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-07 14:57:48 +00:00
Show no matches while matches are being generated
This commit is contained in:
@@ -144,7 +144,7 @@ class TournamentsController < ApplicationController
|
||||
|
||||
def check_for_matches
|
||||
if @tournament
|
||||
if @tournament.matches.empty?
|
||||
if @tournament.matches.empty? or @tournament.curently_generating_matches == 1
|
||||
redirect_to "/tournaments/#{@tournament.id}/no_matches"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user