summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-27 23:15:31 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-27 23:15:31 -0400
commitb35fa4b6f79d13d46eab4c9ba9e631eeb20ba73b (patch)
treefd0e0cc49139e009df042c66442993b814d0f9c4 /app/views
parentd4e4e9281ac707130281eff3beb4bd100dd07809 (diff)
replaced getStatistic with focused where
Diffstat (limited to 'app/views')
-rw-r--r--app/views/tournaments/standings.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/tournaments/standings.html.erb b/app/views/tournaments/standings.html.erb
index b8739de..a04e132 100644
--- a/app/views/tournaments/standings.html.erb
+++ b/app/views/tournaments/standings.html.erb
@@ -1,7 +1,7 @@
-<% playerscores = @tournament.players.collect {|player| player => @tournament.statistics.getStatistic(player.matches.last, player, :score) } %>
+<% playerscores = @tournament.players.collect {|player| player => @tournament.statistics.where(match: player.matches.last, user: player, name: :score) } %>
<% teams = tournament_stage.matches.collect
{ |match| match.teams.collect { |team| team.id => team.players.collect
-{ |player| player.user_name => @tournament.statistics.getStatistic(player.matches.last, player, :score } } } %>
+{ |player| player.user_name => @tournament.statistics.where(match: player.matches.last, user: player, name: :score } } } %>
<table>
<tr>