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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user