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
1
Merge Requests
1
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
nexedi
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
Hide 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
class
BaseService
def
initialize
(
current_user
,
user
,
opts
)
@current_user
=
current_user
def
initialize
(
user
,
opts
)
@user
=
user
@email
=
opts
[
:email
]
end
...
...
app/services/emails/destroy_service.rb
View file @
8f2adb80
...
...
@@ -7,7 +7,7 @@ module Emails
private
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!
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