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

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

module Users
  class TrustService < BaseService
    def initialize(current_user)
      @current_user = current_user
    end

    def execute(user)
      UserCustomAttribute.set_trusted_by(user: user, trusted_by: @current_user)
      success
    end
  end
end