mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-17 21:29:13 +00:00
Do not want two delayed jobs kicking each other off
This commit is contained in:
@@ -46,9 +46,6 @@ class Tournament < ActiveRecord::Base
|
|||||||
def destroyAllMatches
|
def destroyAllMatches
|
||||||
matches.destroy_all
|
matches.destroy_all
|
||||||
end
|
end
|
||||||
if Rails.env.production?
|
|
||||||
handle_asynchronously :destroyAllMatches
|
|
||||||
end
|
|
||||||
|
|
||||||
def matchesByRound(round)
|
def matchesByRound(round)
|
||||||
matches.joins(:weight).where(round: round).order("weights.max")
|
matches.joins(:weight).where(round: round).order("weights.max")
|
||||||
|
|||||||
Reference in New Issue
Block a user