Add comment about note attachment redirect.

This commit is contained in:
Douwe Maan 2015-02-27 11:26:47 +01:00
parent 039fd3c562
commit ff69685607
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ Gitlab::Application.routes.draw do
constraints: { namespace_id: /[a-zA-Z.0-9_\-]+/, project_id: /[a-zA-Z.0-9_\-]+/, filename: /.+/ }
end
# Redirect old note attachments path to new uploads path.
get "files/note/:id/:filename",
to: redirect("uploads/note/attachment/%{id}/%{filename}"),
constraints: { filename: /.+/ }