summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/matches/index.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/matches/index.html.erb b/app/views/matches/index.html.erb
index 761f12a..784d7db 100644
--- a/app/views/matches/index.html.erb
+++ b/app/views/matches/index.html.erb
@@ -12,7 +12,7 @@
</tr>
</thead>
<tbody>
- <% @tournament.stages.ordered(:id)each do |stage| %>
+ <% @tournament.stages.order(:id).each do |stage| %>
<% stage.matches_ordered.keys.sort.reverse.each do |match_key| %><tr>
<% match = stage.matches_ordered[match_key] %>
<td><%= "Match #{match.id}" %></td>
@@ -35,6 +35,6 @@
<br>
-<% @tournament.stages.ordered(:id).each do |stage| %>
+<% @tournament.stages.order(:id).each do |stage| %>
<div class="graph"><%= raw stage.to_svg(current_user) %></div>
<% end %>