summaryrefslogtreecommitdiff
path: root/app/services/protected_tags/base_service.rb
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