Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
8f2adb80
Commit
8f2adb80
authored
Jun 23, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug in emails destroy service
parent
0925f301
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
app/services/emails/base_service.rb
app/services/emails/base_service.rb
+1
-2
app/services/emails/destroy_service.rb
app/services/emails/destroy_service.rb
+1
-1
No files found.
app/services/emails/base_service.rb
View file @
8f2adb80
module
Emails
module
Emails
class
BaseService
class
BaseService
def
initialize
(
current_user
,
user
,
opts
)
def
initialize
(
user
,
opts
)
@current_user
=
current_user
@user
=
user
@user
=
user
@email
=
opts
[
:email
]
@email
=
opts
[
:email
]
end
end
...
...
app/services/emails/destroy_service.rb
View file @
8f2adb80
...
@@ -7,7 +7,7 @@ module Emails
...
@@ -7,7 +7,7 @@ module Emails
private
private
def
update_secondary_emails!
def
update_secondary_emails!
result
=
::
Users
::
UpdateService
.
new
(
@
current_
user
).
execute
do
|
user
|
result
=
::
Users
::
UpdateService
.
new
(
@user
).
execute
do
|
user
|
user
.
update_secondary_emails!
user
.
update_secondary_emails!
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment