summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-04-28 21:12:22 -0400
committerguntasgrewal <guntasgrewal@gmail.com>2014-04-28 21:12:22 -0400
commit927e21c067673a46c68e9ecfa191983ebb3874e7 (patch)
treed75f6ae71a05353d4d5b3cb949b0b9686014b280 /app
parentfeffb3b186ad2b73bd9868a1eb24ab20f9c71507 (diff)
Tournament Stage now displays correct stage number
Diffstat (limited to 'app')
-rw-r--r--app/views/matches/show.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb
index 01484d3..bf5518f 100644
--- a/app/views/matches/show.html.erb
+++ b/app/views/matches/show.html.erb
@@ -5,7 +5,7 @@
</p>
<p>
<strong>Tournament stage:</strong>
- <%= @match.tournament_stage %>
+ <%= @tournament.stages.order(:id).index(@match.tournament_stage)+1 %>
</p>
<%#