diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-22 15:50:21 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-22 15:50:21 -0400 |
commit | 9d226fcd27b6c2470edf718ad36a262348891470 (patch) | |
tree | bb17fce921d0017b6e9111bd81edc194c07f61d3 /config/routes.rb | |
parent | 136b86453000aa6ad3a099efb96d85232eb2eeb5 (diff) |
re-factor for tournament_stage's and separate scheduling modules
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 10 |
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". |