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