1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-30 19:22:21 +00:00

Do not want two delayed jobs kicking each other off

This commit is contained in:
2016-01-22 04:40:54 +00:00
parent d011c1c3b6
commit 7c84686ed8

View File

@@ -46,9 +46,6 @@ class Tournament < ActiveRecord::Base
def destroyAllMatches
matches.destroy_all
end
if Rails.env.production?
handle_asynchronously :destroyAllMatches
end
def matchesByRound(round)
matches.joins(:weight).where(round: round).order("weights.max")