moved devise_for :emails to live under `profiles`, removing the need

for `emails` to be a top level route
This commit is contained in:
Brett Walker 2017-09-14 15:36:30 +02:00
parent 867d59c57f
commit a000c2a144
3 changed files with 3 additions and 4 deletions

View File

@ -1,3 +1,6 @@
# for secondary email confirmations - uses the same confirmation controller as :users
devise_for :emails, path: 'profile/emails', controllers: { confirmations: :confirmations }
resource :profile, only: [:show, :update] do
member do
get :audit_log

View File

@ -11,9 +11,6 @@ devise_scope :user do
get '/users/almost_there' => 'confirmations#almost_there'
end
# for secondary email confirmations
devise_for :emails, controllers: { confirmations: :confirmations }
scope(constraints: { username: Gitlab::PathRegex.root_namespace_route_regex }) do
scope(path: 'users/:username',
as: :user,

View File

@ -30,7 +30,6 @@ module Gitlab
ci
dashboard
deploy.html
emails
explore
favicon.ico
files