summaryrefslogtreecommitdiff
path: root/app/serializers/trigger_variable_entity.rb
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