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

trigger_variable_entity.rb « serializers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4b28db42e76e2d066caf350e0bd09f5676f0de25 (plain)
1
2
3
4
5
6
7
8
# frozen_string_literal: true

class TriggerVariableEntity < Grape::Entity
  include RequestAwareEntity

  expose :key, :public
  expose :value, if: ->(_, _) { can?(request.current_user, :admin_build, request.project) }
end