From 4383e0fbbce553c1a1a6cad50424f93889a26e65 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 27 Dec 2023 06:02:22 +0000 Subject: [PATCH] Fix RuboCop offense Style/HashSyntax (Don't mix styles in the same hash) introduced in r22563 (#39747, #36320). git-svn-id: https://svn.redmine.org/redmine/trunk@22565 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 15aa87de4..540f3d0af 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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 => /.*/}