summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-06-19 15:35:44 +0200
committerJames Lopez <james@jameslopez.es>2017-06-23 11:41:42 +0200
commit831b2fccf9a2efc772d62c05f52c612f23a63ea9 (patch)
treec36fd08364a01f2ba713f8df5aa3dd1c69314220 /app/controllers
parent87bf08c96cf9f3c451d0746d11ceac149adf22db (diff)
downloadgitlab-ce-831b2fccf9a2efc772d62c05f52c612f23a63ea9.tar.gz
update missing email actions
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/profiles/emails_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/profiles/emails_controller.rb b/app/controllers/profiles/emails_controller.rb
index 9159c217f1b..40b43278439 100644
--- a/app/controllers/profiles/emails_controller.rb
+++ b/app/controllers/profiles/emails_controller.rb
@@ -7,7 +7,7 @@ class Profiles::EmailsController < Profiles::ApplicationController
def create
@email = current_user.emails.new(email_params)
- if @email.save
+ if Emails::CreateService.new(current_user, current_user, email_params).execute
NotificationService.new.new_email(@email)
else
flash[:alert] = @email.errors.full_messages.first