1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-18 21:42:16 +00:00

I think I got delayed jobs working

This commit is contained in:
2015-12-29 18:50:18 +00:00
parent 106291fbaf
commit 0d310c587b
6 changed files with 18 additions and 1 deletions

View File

@@ -9,6 +9,10 @@ class Tournament < ActiveRecord::Base
has_many :wrestlers, through: :weights
has_many :matches, dependent: :destroy
if Rails.env.production?
handle_asynchronously :generateMatchups
end
def resetSchoolScores
schools.update_all("score = 0.0")
end