]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense Style/HashSyntax (Don't mix styles in the same hash) introduced...
authorGo MAEDA <maeda@farend.jp>
Wed, 27 Dec 2023 06:02:22 +0000 (06:02 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 27 Dec 2023 06:02:22 +0000 (06:02 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22565 e93f8b46-1217-0410-a6f0-8f06a7374b81

config/routes.rb

index 15aa87de47a8f34512595ceb9b57e71cd8c1a1ab..540f3d0af651aa30c15dc5dc78cc806dbd7820e2 100644 (file)
@@ -300,12 +300,12 @@ Rails.application.routes.draw do
   get "projects/:id/repository/:repository_id/revisions/:rev/diff(/*path)",
       :to => 'repositories#diff',
       :format => 'html',
-      :constraints => {:rev => /[a-z0-9\.\-_]+/, :path => /.*/, format: /(html|diff)/ }
+      :constraints => {:rev => /[a-z0-9\.\-_]+/, :path => /.*/, :format => /(html|diff)/ }
 
   get "projects/:id/repository/:repository_id/diff(/*path)",
       :to => 'repositories#diff',
       :format => 'html',
-      :constraints => {:path => /.*/, format: /(html|diff)/ }
+      :constraints => {:path => /.*/, :format => /(html|diff)/ }
 
   get 'projects/:id/repository/:repository_id/show/*path', :to => 'repositories#show', :format => 'html', :constraints => {:path => /.*/}