diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/matches/show.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb index 2ec0ea6..7a82527 100644 --- a/app/views/matches/show.html.erb +++ b/app/views/matches/show.html.erb @@ -47,7 +47,7 @@ function score_peers() { <% if @match.status <= 1 %> <li><%= user.user_name %></li> <% else %> - <% score = Statistic.where(:name => "score", :user => user, :match => @match).first%> + <% score = user.statistics.where(:name => "score", :match => @match).first %> <li><%= user.user_name %> - SCORE: <%= score ? score.value : 0 %></li> <% end %> <% end %> |