Skip to content

Instantly share code, notes, and snippets.

@RookieOne
Created September 27, 2013 17:44
Show Gist options
  • Save RookieOne/6732268 to your computer and use it in GitHub Desktop.
Save RookieOne/6732268 to your computer and use it in GitHub Desktop.
SurvivorContest.where("finalized = false and cancelled = false").each do |contest|
# do nothing
round = contest.active_round
if round.present?
if round.syncable?
round.match_ups.where(syncable: true).find_each do |match_up|
# do nothing
end
# round.match_ups.syncable.each do |match_up|
# SyncMatchUpWorker.queue(match_up.id, @options)
# end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment