diff options
author | David Cabo <david at calibea.com> | 2012-02-05 23:48:03 +0100 |
---|---|---|
committer | David Cabo <david at calibea.com> | 2012-02-05 23:48:03 +0100 |
commit | 84d601ae9fb50e595acaf9c5b0027a2b9bb71a66 (patch) | |
tree | 7243bbcd3644151f5325896aef91022596c1f9ac | |
parent | 14b5be69dc2dc3c4dd817feb0b5a8402fc343db4 (diff) |
Don't use absolute path when including the 'custom-routes' file, or themes can't override it. Fixes #416.0.5release/0.5
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index c4339209a..fa387a106 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -15,7 +15,7 @@ ActionController::Routing::Routes.draw do |map| # Keep in mind you can assign values other than :controller and :action # Allow easy extension from themes. Note these will have the highest priority. - require File.join(Rails.root, 'config', 'custom-routes') + require File.join('config', 'custom-routes') map.with_options :controller => 'general' do |general| general.frontpage '/', :action => 'frontpage' |