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