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

Trying to remove queries and rely on associations

This commit is contained in:
2015-11-02 13:25:53 -05:00
parent f14fbadfd1
commit e426a491b3
3 changed files with 7 additions and 7 deletions

View File

@@ -103,8 +103,7 @@ class Weight < ActiveRecord::Base
end
def bracket_size
@wrestlers = Wrestler.where(weight_id: self.id)
return @wrestlers.size
wrestlers.size
end
def pool_bracket_type