debian-mirror-gitlab/lib/api/helpers/common_helpers.rb
2017-08-17 22:00:37 +05:30

13 lines
303 B
Ruby

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