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
Jérome Perrin
gitlab-ce
Commits
98fd60f5
Commit
98fd60f5
authored
Mar 19, 2016
by
Zeger-Jan van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Satisfy rubocop
parent
1d778228
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
app/controllers/concerns/issuable_action.rb
app/controllers/concerns/issuable_action.rb
+1
-1
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+0
-3
No files found.
app/controllers/concerns/issuable_action.rb
View file @
98fd60f5
...
...
@@ -11,7 +11,7 @@ module IssuableAction
issuable
.
destroy
route
=
polymorphic_path
([
@project
.
namespace
.
becomes
(
Namespace
),
@project
,
issuable
.
class
])
issuable_name
=
issuable
.
class
.
name
.
underscore
.
gsub
(
'_'
,
' '
)
issuable_name
=
issuable
.
class
.
name
.
underscore
.
tr
(
'_'
,
' '
)
respond_to
do
|
format
|
format
.
html
{
redirect_to
route
,
notice:
"This
#{
issuable_name
}
was deleted."
}
...
...
app/controllers/projects/merge_requests_controller.rb
View file @
98fd60f5
...
...
@@ -165,7 +165,6 @@ class Projects::MergeRequestsController < Projects::ApplicationController
end
end
<<<<<<<
67043
ec53b4c35d5a9862fe78bd3f47e412919cd
def
remove_wip
MergeRequests
::
UpdateService
.
new
(
project
,
current_user
,
title:
@merge_request
.
wipless_title
).
execute
(
@merge_request
)
...
...
@@ -173,8 +172,6 @@ class Projects::MergeRequestsController < Projects::ApplicationController
notice:
"The merge request can now be merged."
end
=======
>>>>>>>
Dry
destroy
action
on
issuables
def
merge_check
@merge_request
.
check_if_can_be_merged
...
...
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