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

Speeding up tests and renaming a few methods in generateMatchups

This commit is contained in:
2016-03-26 03:54:31 +00:00
parent f66725d750
commit ddcf2d807e
17 changed files with 2814 additions and 729 deletions

View File

@@ -7,6 +7,10 @@ class Match < ActiveRecord::Base
after_update do
after_update_actions
end
def after_update_actions
if self.finished == 1 && self.winner_id != nil
if self.w1 && self.w2
wrestler1.touch