Skip to content
Snippets Groups Projects
Commit 0c5fbaa7 authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Add 204. Remove duplicated method.

parent 0bbf0064
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment