Skip to content
Snippets Groups Projects
Commit 327ae90c authored by Rémy Coutable's avatar Rémy Coutable Committed by blackst0ne
Browse files

Don't use Hash#slice since it's not supported in Ruby 2.1


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 1bdda800
No related branches found
No related tags found
1 merge request!9252Add merge request count to each issue on issues list
Loading
@@ -67,9 +67,14 @@ module API
Loading
@@ -67,9 +67,14 @@ module API
pipeline = @project.ensure_pipeline(ref, commit.sha, current_user) pipeline = @project.ensure_pipeline(ref, commit.sha, current_user)
   
status = GenericCommitStatus.running_or_pending.find_or_initialize_by( status = GenericCommitStatus.running_or_pending.find_or_initialize_by(
project: @project, pipeline: pipeline, project: @project,
user: current_user, name: name, ref: ref) pipeline: pipeline,
status.attributes = declared(params).slice(:target_url, :description) user: current_user,
name: name,
ref: ref,
target_url: params[:target_url],
description: params[:description]
)
   
begin begin
case params[:state].to_s case params[:state].to_s
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment