Commit 5b6205d5 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Use slice instead manual hash creation

parent 58604285
...@@ -8,7 +8,7 @@ module Projects ...@@ -8,7 +8,7 @@ module Projects
end end
def create def create
opts = { issue_references: params[:issue_references] } opts = params.slice(:issue_references)
result = RelatedIssues::CreateService.new(issue, current_user, opts).execute result = RelatedIssues::CreateService.new(issue, current_user, opts).execute
if result['status'] == :success if result['status'] == :success
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment