]> source.dussan.org Git - redmine.git/commitdiff
Fixed routing failure with jruby 1.6.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 27 Feb 2012 18:35:10 +0000 (18:35 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 27 Feb 2012 18:35:10 +0000 (18:35 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9021 e93f8b46-1217-0410-a6f0-8f06a7374b81

config/routes.rb

index 21718e096cbf23f2047d9b3b916a6b20d5af06fd..772447cae918ec870c73fa6c5c99557f5edf7cb4 100644 (file)
@@ -264,7 +264,9 @@ ActionController::Routing::Routes.draw do |map|
       repository_views.connect 'projects/:id/repository/:repository_id/raw/*path',
                                :action => 'entry', :format => 'raw'
       repository_views.connect 'projects/:id/repository/:repository_id/:action/*path',
-                               :requirements => { :action => /(browse|show|entry|changes|annotate|diff)/ }
+                               :requirements => { :action => /(browse|entry|changes|annotate|diff)/ }
+      repository_views.connect 'projects/:id/repository/:repository_id/show/*path',
+                               :requirements => { :path => /.+/ }
 
       repository_views.connect 'projects/:id/repository/revisions',
                                :action => 'revisions'