Commit 938a1381 authored by Douwe Maan's avatar Douwe Maan

Satisfy Rubocop.

parent 73d12d6e
...@@ -16,4 +16,4 @@ class Projects::UploadsController < Projects::ApplicationController ...@@ -16,4 +16,4 @@ class Projects::UploadsController < Projects::ApplicationController
not_found! not_found!
end end
end end
end end
\ No newline at end of file
...@@ -10,4 +10,4 @@ begin ...@@ -10,4 +10,4 @@ begin
rescue rescue
# If ActionDispatch::Static wasn't loaded onto the stack (like in production), # If ActionDispatch::Static wasn't loaded onto the stack (like in production),
# an exception is raised. # an exception is raised.
end end
\ No newline at end of file
...@@ -75,12 +75,14 @@ Gitlab::Application.routes.draw do ...@@ -75,12 +75,14 @@ Gitlab::Application.routes.draw do
scope path: :uploads do scope path: :uploads do
# Note attachments and User/Group/Project avatars # Note attachments and User/Group/Project avatars
get ":model/:mounted_as/:id/:filename", to: "uploads#show", get ":model/:mounted_as/:id/:filename",
constraints: { model: /note|user|group|project/, mounted_as: /avatar|attachment/, filename: /.+/ } to: "uploads#show",
constraints: { model: /note|user|group|project/, mounted_as: /avatar|attachment/, filename: /.+/ }
# Project markdown uploads # Project markdown uploads
get ":id/:secret/:filename", to: "projects/uploads#show", get ":id/:secret/:filename",
constraints: { id: /[a-zA-Z.0-9_\-]+\/[a-zA-Z.0-9_\-]+/, filename: /.+/ } to: "projects/uploads#show",
constraints: { id: /[a-zA-Z.0-9_\-]+\/[a-zA-Z.0-9_\-]+/, filename: /.+/ }
end end
# #
......
...@@ -10,4 +10,4 @@ module Gitlab ...@@ -10,4 +10,4 @@ module Gitlab
end end
end end
end end
end end
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment