aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-06-05 10:53:49 +0100
committerRobin Houston <robin.houston@gmail.com>2012-06-05 10:53:49 +0100
commit0b10c9002481d80d4a70ca224fc49aa5970c6294 (patch)
treeda2fa512c6c6b467591ca3d8422dc24b203ba451 /config/routes.rb
parente3cfe550fe835c68b25d693abd40aedd954913b3 (diff)
Multi-theme support for custom routes
A simple mechanism for allowing multiple themes to register custom routes.
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index c0d65042c..814deb760 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -7,7 +7,9 @@
# $Id: routes.rb,v 1.92 2009-10-14 22:01:27 francis Exp $
# Allow easy extension from themes. Note these will have the highest priority.
-load File.join('config', 'custom-routes.rb')
+$alaveteli_route_extensions.each do |f|
+ load File.join('config', f)
+end
ActionController::Routing::Routes.draw do |map|