mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Added generating matches as delayed job
This commit is contained in:
@@ -24,6 +24,7 @@ class Tournament < ActiveRecord::Base
|
||||
# assignRound
|
||||
assignBouts
|
||||
end
|
||||
handle_asynchronously :generateMatches
|
||||
|
||||
def destroyAllMatches
|
||||
@matches_all = Match.where(tournament_id: self.id)
|
||||
|
||||
Reference in New Issue
Block a user