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

base_service.rb « protected_tags « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e0181815f0fa22f50e16afba08558caee14d1e2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module ProtectedTags
  class BaseService < ::BaseService
    include ProtectedRefNameSanitizer

    private

    def filtered_params
      return unless params

      params[:name] = sanitize_name(params[:name]) if params[:name].present?
      params
    end
  end
end