diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-07-15 10:44:38 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-07-15 10:44:38 +0100 |
commit | 183b5be4f8e2e7396a32c6d15f6fb5c085ba0889 (patch) | |
tree | 8ab399c250799a8c337aa596e8aeebfd08d9a95f /config/routes.rb | |
parent | 62b006d959caf95870f9215e56fb3594c585a259 (diff) |
Only prepend locales to paths when there's more than one locale to choose from.
Replaces core "locale" filter with customised one. Fixes #82
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index 175a37a82..9765b26b8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -195,8 +195,7 @@ ActionController::Routing::Routes.draw do |map| rule.admin_rule_update '/admin/censor/update', :action => 'update' rule.admin_rule_destroy '/admin/censor/destroy/:censor_rule_id', :action => 'destroy' end - map.filter('locale') - + map.filter('conditionallyprependlocale') # Allow downloading Web Service WSDL as a file with an extension # instead of a file named 'wsdl' |