diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-15 14:42:24 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-15 14:42:24 -0800 |
commit | d4a8471fe97e8e259bf0128739a07108e0731bf9 (patch) | |
tree | 367054ed321128b78a82c19a745a478020e43b0d /config | |
parent | 11591573e117b0b8f3fcd6f86c526e2df20a0dbf (diff) | |
parent | 29ed4627754f4f462828aca5b7bf9dc1035cb6df (diff) | |
download | gitlab-ce-d4a8471fe97e8e259bf0128739a07108e0731bf9.tar.gz |
Merge pull request #7987 from cirosantilli/get-instead-match
Replace match via get with get on routes
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index 245d6185639..9deddf3eade 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -154,8 +154,8 @@ Gitlab::Application.routes.draw do end end - match "/u/:username" => "users#show", as: :user, - constraints: {username: /(?:[^.]|\.(?!atom$))+/, format: /atom/}, via: :get + get '/u/:username' => 'users#show', as: :user, + constraints: { username: /(?:[^.]|\.(?!atom$))+/, format: /atom/ } # # Dashboard Area |