diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2025-03-29 13:32:05 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2025-03-29 13:32:05 +0000 |
commit | f77c5af552be02d36605aa9fa1365ac9061d4443 (patch) | |
tree | cc0ace5072c77b08ad10d6180dc38c3ca2130b5f | |
parent | f4e5e36decb12fa24955c46dd7f90ef0f01ee013 (diff) | |
download | redmine-f77c5af552be02d36605aa9fa1365ac9061d4443.tar.gz redmine-f77c5af552be02d36605aa9fa1365ac9061d4443.zip |
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
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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] |