Commit 2f81d000 authored by Kerri Miller's avatar Kerri Miller

Extract specialized service execution

parent 7afce3a7
......@@ -284,14 +284,16 @@ module MergeRequests
#
return unless params.keys.length == 1
updated_merge_request = nil
attempt_specialized_update_services(merge_request, params.each_key.first.to_sym)
end
case params.each_key.first.to_sym
def attempt_specialized_update_services(merge_request, attribute)
case attribute
when :assignee_ids
updated_merge_request = assignees_service.execute(merge_request)
assignees_service.execute(merge_request)
else
nil
end
updated_merge_request
end
def assignees_service
......
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