2017-05-04 08:11:15 -04:00
|
|
|
module API
|
|
|
|
module Helpers
|
|
|
|
module CommonHelpers
|
|
|
|
def convert_parameters_from_legacy_format(params)
|
2017-05-08 10:58:42 -04:00
|
|
|
params.tap do |params|
|
2018-01-15 07:24:16 -05:00
|
|
|
assignee_id = params.delete(:assignee_id)
|
|
|
|
|
|
|
|
if assignee_id.present?
|
|
|
|
params[:assignee_ids] = [assignee_id]
|
2017-05-08 10:58:42 -04:00
|
|
|
end
|
2017-05-04 08:11:15 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|