1
0
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:
2015-02-09 11:02:13 -05:00
parent 3b93c337c7
commit aca4d9adf4

View File

@@ -24,6 +24,7 @@ class Tournament < ActiveRecord::Base
# assignRound
assignBouts
end
handle_asynchronously :generateMatches
def destroyAllMatches
@matches_all = Match.where(tournament_id: self.id)