debian-mirror-gitlab/app/serializers/trigger_variable_entity.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
224 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
class TriggerVariableEntity < Grape::Entity
include RequestAwareEntity
2018-12-23 12:14:25 +05:30
expose :key, :public
expose :value, if: ->(_, _) { can?(request.current_user, :admin_build, request.project) }
2018-12-05 23:21:45 +05:30
end