Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Walker <brett@digitalmoksha.com>2017-09-14 16:36:30 +0300
committerBrett Walker <brett@digitalmoksha.com>2017-09-23 16:26:04 +0300
commita000c2a1443beb7de0b5193f89916ccce57170c5 (patch)
tree83bb5dfed4a9d998445a74d832cf736ebaf400eb /config/routes/profile.rb
parent867d59c57f9b2501690b52671c9ca1ed54fb92d4 (diff)
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