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

Matchups_array completely removed. I do not know why has_many matches

does not work in tournaments. The solution was to add a matches
method.
This commit is contained in:
2015-04-27 09:50:41 -04:00
parent 6d39bcb868
commit 9c5c12c413
6 changed files with 21 additions and 13 deletions

View File

@@ -5,8 +5,7 @@ class Weight < ActiveRecord::Base
attr_accessor :pools
before_save do
self.tournament.matchups_array = nil
self.tournament.save
self.tournament.destroyAllMatches
end
def pools