From 7c84686ed8ae6ba4d583860895f6d7fb4c1f17fc Mon Sep 17 00:00:00 2001 From: jcwimer Date: Fri, 22 Jan 2016 04:40:54 +0000 Subject: [PATCH] Do not want two delayed jobs kicking each other off --- app/models/tournament.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/models/tournament.rb b/app/models/tournament.rb index 490812f..6fe5f1d 100644 --- a/app/models/tournament.rb +++ b/app/models/tournament.rb @@ -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")