From f77c5af552be02d36605aa9fa1365ac9061d4443 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sat, 29 Mar 2025 13:32:05 +0000 Subject: [PATCH] Fixes rubocop offense "Style/HashSyntax: Don't mix styles in the same hash." (#42394). git-svn-id: https://svn.redmine.org/redmine/trunk@23583 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index ad83deac0..89927bee3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -316,7 +316,7 @@ Rails.application.routes.draw do # additional routes for having the file name at the end of url get 'attachments/:id/:filename', :to => 'attachments#show', :id => /\d+/, :filename => /.*/, :as => 'named_attachment', :format => 'html' - get 'attachments/download/:id/:filename', :to => 'attachments#download', :id => /\d+/, :filename => /.*/, :as => 'download_named_attachment', format: 'html' + get 'attachments/download/:id/:filename', :to => 'attachments#download', :id => /\d+/, :filename => /.*/, :as => 'download_named_attachment', :format => 'html' get 'attachments/download/:id', :to => 'attachments#download', :id => /\d+/ get 'attachments/thumbnail/:id(/:size)', :to => 'attachments#thumbnail', :id => /\d+/, :size => /\d+/, :as => 'thumbnail' resources :attachments, :only => [:show, :update, :destroy]