3836d69119
Partially addresses #47424. Had to make changes to spec files because stubbing methods on frozen objects is a mess in RSpec and leads to failures: https://github.com/rspec/rspec-mocks/issues/1190
17 lines
362 B
Ruby
17 lines
362 B
Ruby
# frozen_string_literal: true
|
|
|
|
module API
|
|
module Helpers
|
|
module CommonHelpers
|
|
def convert_parameters_from_legacy_format(params)
|
|
params.tap do |params|
|
|
assignee_id = params.delete(:assignee_id)
|
|
|
|
if assignee_id.present?
|
|
params[:assignee_ids] = [assignee_id]
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|