BigW Consortium Gitlab

common_helpers.rb 303 Bytes
Newer Older
1 2 3 4
module API
  module Helpers
    module CommonHelpers
      def convert_parameters_from_legacy_format(params)
5 6 7 8
        params.tap do |params|
          if params[:assignee_id].present?
            params[:assignee_ids] = [params.delete(:assignee_id)]
          end
9 10 11 12 13
        end
      end
    end
  end
end