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