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|
|
|
|
|
if params[:assignee_id].present?
|
|
|
|
params[:assignee_ids] = [params.delete(:assignee_id)]
|
|
|
|
end
|
2017-05-04 08:11:15 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|