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
0c5fbaa7
Commit
0c5fbaa7
authored
Aug 01, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 204. Remove duplicated method.
parent
0bbf0064
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
lib/api/group_variables.rb
lib/api/group_variables.rb
+1
-0
lib/api/helpers.rb
lib/api/helpers.rb
+0
-4
No files found.
lib/api/group_variables.rb
View file @
0c5fbaa7
...
@@ -88,6 +88,7 @@ module API
...
@@ -88,6 +88,7 @@ module API
variable
=
user_group
.
variables
.
find_by
(
key:
params
[
:key
])
variable
=
user_group
.
variables
.
find_by
(
key:
params
[
:key
])
not_found!
(
'GroupVariable'
)
unless
variable
not_found!
(
'GroupVariable'
)
unless
variable
status
204
variable
.
destroy
variable
.
destroy
end
end
end
end
...
...
lib/api/helpers.rb
View file @
0c5fbaa7
...
@@ -33,10 +33,6 @@ module API
...
@@ -33,10 +33,6 @@ module API
@project
||=
find_project!
(
params
[
:id
])
@project
||=
find_project!
(
params
[
:id
])
end
end
def
user_group
@group
||=
find_group!
(
params
[
:id
])
end
def
available_labels
def
available_labels
@available_labels
||=
LabelsFinder
.
new
(
current_user
,
project_id:
user_project
.
id
).
execute
@available_labels
||=
LabelsFinder
.
new
(
current_user
,
project_id:
user_project
.
id
).
execute
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