mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-09 15:42:09 +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"
|
has_many :deductedPoints, class_name: "Teampointadjust"
|
||||||
attr_accessor :poolNumber, :poolAdvancePoints
|
attr_accessor :poolNumber, :poolAdvancePoints
|
||||||
|
|
||||||
before_save do
|
before_create do
|
||||||
self.tournament.destroyAllMatches
|
self.tournament.destroyAllMatches
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user