summaryrefslogtreecommitdiff
path: root/app/controllers/matches_controller.rb
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-06 22:26:28 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-06 22:26:28 -0400
commit5798dd7da423895a5c8561800f7d78859e6ab000 (patch)
tree093c755b70817596333b09f1d70d42eead9463e3 /app/controllers/matches_controller.rb
parentf91717ad1803cf547324e21899dd2e279852b43c (diff)
MatchesController: define matches_url
Diffstat (limited to 'app/controllers/matches_controller.rb')
-rw-r--r--app/controllers/matches_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb
index feeda02..5c654dd 100644
--- a/app/controllers/matches_controller.rb
+++ b/app/controllers/matches_controller.rb
@@ -15,6 +15,12 @@ class MatchesController < ApplicationController
@height = 200 * 2**Math.log2(@matches.count).floor + 100;
end
+ # For compatability with the router assumptions made by ApplicationController#check_permission
+ def matches_url
+ set_tournament
+ tournament_matches_path(@tournament)
+ end
+
def get_riot_info
if signed_in?