summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 8ec4432..f94bd2f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -25,7 +25,17 @@ Leaguer::Application.routes.draw do
root to: 'static#homepage'
get '/testsvg', to: 'static#test'
+end
+Leaguer::Application.routes.named_routes.module.module_eval do
+ def match_path(match, options={})
+ tournament_match_path(match.tournament_stage.tournament, match, options)
+ end
+ def match_url(match, options={})
+ tournament_match_url(match.tournament_stage.tournament, match, options)
+ end
+end
+if false
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".