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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user