summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-22 15:50:21 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-22 15:50:21 -0400
commit9d226fcd27b6c2470edf718ad36a262348891470 (patch)
treebb17fce921d0017b6e9111bd81edc194c07f61d3 /config
parent136b86453000aa6ad3a099efb96d85232eb2eeb5 (diff)
re-factor for tournament_stage's and separate scheduling modules
Diffstat (limited to 'config')
-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".