1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-11 16:01:56 +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

@@ -4,6 +4,11 @@ class Match < ActiveRecord::Base
belongs_to :mat, touch: true
has_many :wrestlers, :through => :weight
if Rails.env.production?
handle_asynchronously :advance_wrestlers
handle_asynchronously :calcSchoolPoints
end
after_update do
if self.finished == 1 && self.winner_id != nil
if self.w1 && self.w2