Welcome to mirror list, hosted at ThFree Co, Russian Federation.

common_helpers.rb « helpers « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 322624c609222cbc2f908bfcc1858063d6c9d244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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