mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-04 22:03:49 +00:00
Removed some logic from view for faster rendering
This commit is contained in:
@@ -39,6 +39,7 @@ class StaticPagesController < ApplicationController
|
||||
@tournament = Tournament.find(@weight.tournament_id)
|
||||
@matches = @tournament.upcomingMatches.select{|m| m.weight_id == @weight.id}
|
||||
@wrestlers = Wrestler.where(weight_id: @weight.id)
|
||||
@pools = @weight.poolRounds(@matches)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user