summaryrefslogtreecommitdiff
path: root/config/routes/profile.rb
diff options
context:
space:
mode:
authorBrett Walker <brett@digitalmoksha.com>2017-09-14 15:36:30 +0200
committerBrett Walker <brett@digitalmoksha.com>2017-09-23 15:26:04 +0200
commita000c2a1443beb7de0b5193f89916ccce57170c5 (patch)
tree83bb5dfed4a9d998445a74d832cf736ebaf400eb /config/routes/profile.rb
parent867d59c57f9b2501690b52671c9ca1ed54fb92d4 (diff)
downloadgitlab-ce-a000c2a1443beb7de0b5193f89916ccce57170c5.tar.gz
moved devise_for :emails to live under `profiles`, removing the need
for `emails` to be a top level route
Diffstat (limited to 'config/routes/profile.rb')
-rw-r--r--config/routes/profile.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/routes/profile.rb b/config/routes/profile.rb
index ea4dd9b67ec..ddc852f0132 100644
--- a/config/routes/profile.rb
+++ b/config/routes/profile.rb
@@ -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