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

group_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: cc27452e6a30ae2d045eced11a4714dc57269417 (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 GroupCalloutsController < UserCalloutsController
    private

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

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