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

Removed score from school table and added attr_accessor

This commit is contained in:
2015-03-28 18:38:09 +00:00
parent 9976fd5869
commit 522798a2c4
4 changed files with 9 additions and 27 deletions

View File

@@ -33,7 +33,6 @@ class StaticPagesController < ApplicationController
end
def brackets
if params[:weight]
@weight = Weight.find(params[:weight])
@bracketType = @weight.pool_bracket_type
@@ -41,8 +40,6 @@ class StaticPagesController < ApplicationController
@matches = @tournament.upcomingMatches.select{|m| m.weight_id == @weight.id}
@wrestlers = Wrestler.where(weight_id: @weight.id)
end
end
def weights
@@ -54,5 +51,4 @@ class StaticPagesController < ApplicationController
@weights = @weights.sort_by{|x|[x.max]}
end
end
end