1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-13 08:32:47 +00:00

fixed generation sort

This commit is contained in:
2015-02-06 23:29:00 +00:00
parent cba5d0a96d
commit eba979740c
5 changed files with 17 additions and 17 deletions

View File

@@ -6,7 +6,7 @@ class Weight < ActiveRecord::Base
def generatePool
@wrestlers = Wrestler.where(weight_id: self.id)
@wrestlers.sort_by{|x|[x.original_seed]}
#@wrestlers.sort_by{|w| [w.original_seed]}
if self.pools == 1
@pool = Pool.new
@pool.onePool(@wrestlers,self.id,self.tournament_id)