gitlab-org--gitlab-foss/lib/api/helpers/common_helpers.rb
2017-05-04 17:11:53 +03:00

13 lines
270 B
Ruby

module API
module Helpers
module CommonHelpers
def convert_parameters_from_legacy_format(params)
if params[:assignee_id].present?
params[:assignee_ids] = [params.delete(:assignee_id)]
end
params
end
end
end
end