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
824d01b7
Commit
824d01b7
authored
May 17, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary bang from methods
parent
d499d228
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
app/services/related_issues/create_service.rb
app/services/related_issues/create_service.rb
+6
-6
No files found.
app/services/related_issues/create_service.rb
View file @
824d01b7
...
...
@@ -9,7 +9,7 @@ module RelatedIssues
return
error
(
'No Issue found for given reference'
,
401
)
end
create_related_issues
!
create_related_issues
success_message
rescue
=>
exception
...
...
@@ -18,20 +18,20 @@ module RelatedIssues
private
def
create_related_issues
!
def
create_related_issues
RelatedIssue
.
transaction
do
referenced_issues
.
each
do
|
referenced_issue
|
relate_issues
!
(
referenced_issue
)
create_notes
!
(
referenced_issue
)
relate_issues
(
referenced_issue
)
create_notes
(
referenced_issue
)
end
end
end
def
relate_issues
!
(
referenced_issue
)
def
relate_issues
(
referenced_issue
)
RelatedIssue
.
create!
(
issue:
@issue
,
related_issue:
referenced_issue
)
end
def
create_notes
!
(
referenced_issue
)
def
create_notes
(
referenced_issue
)
SystemNoteService
.
relate_issue
(
@issue
,
referenced_issue
,
current_user
)
SystemNoteService
.
relate_issue
(
referenced_issue
,
@issue
,
current_user
)
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