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

Destroy matches on wrestler create not save

This commit is contained in:
2015-12-15 13:25:23 -05:00
parent 4a4dfde8bb
commit d48b1b573f

View File

@@ -6,7 +6,7 @@ class Wrestler < ActiveRecord::Base
has_many :deductedPoints, class_name: "Teampointadjust"
attr_accessor :poolNumber, :poolAdvancePoints
before_save do
before_create do
self.tournament.destroyAllMatches
end