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
a3f22013
Commit
a3f22013
authored
Jun 23, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug in emails destroy service
parent
06e0e1b7
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 @
a3f22013
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 @
a3f22013
...
@@ -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