BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
group_variables.rb
lib/api/group_variables.rb
+1
-0
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
variable
=
user_group
.
variables
.
find_by
(
key:
params
[
:key
])
not_found!
(
'GroupVariable'
)
unless
variable
status
204
variable
.
destroy
end
end
...
...
lib/api/helpers.rb
View file @
0c5fbaa7
...
...
@@ -33,10 +33,6 @@ module API
@project
||=
find_project!
(
params
[
:id
])
end
def
user_group
@group
||=
find_group!
(
params
[
:id
])
end
def
available_labels
@available_labels
||=
LabelsFinder
.
new
(
current_user
,
project_id:
user_project
.
id
).
execute
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