debian-mirror-gitlab/app/serializers/trigger_variable_entity.rb
2019-02-15 15:39:39 +05:30

8 lines
224 B
Ruby

# 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