mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00:00
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
This commit is contained in:
parent
f4e5e36dec
commit
f77c5af552
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user