1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Fixed mat assignment when matches are finished

This commit is contained in:
2016-01-11 16:48:08 +00:00
parent a2c0a2763e
commit cce30bdf3a
3 changed files with 5 additions and 3 deletions

View File

@@ -54,7 +54,9 @@ class Match < ActiveRecord::Base
@w2 = wrestler2
@w1.advanceInBracket
@w2.advanceInBracket
self.mat.assignNextMatch
if self.mat
self.mat.assignNextMatch
end
end
end
if Rails.env.production?