diff --git a/app/models/tournament.rb b/app/models/tournament.rb index d56ce6a..bb88907 100644 --- a/app/models/tournament.rb +++ b/app/models/tournament.rb @@ -24,6 +24,7 @@ class Tournament < ActiveRecord::Base # assignRound assignBouts end + handle_asynchronously :generateMatches def destroyAllMatches @matches_all = Match.where(tournament_id: self.id)