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

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

module Users
  class NamespaceCalloutsController < Users::CalloutsController
    private

    def callout
      Users::DismissNamespaceCalloutService.new(
        container: nil, current_user: current_user, params: callout_params
      ).execute
    end

    def callout_params
      params.permit(:namespace_id).merge(feature_name: feature_name)
    end
  end
end