debian-mirror-gitlab/app/serializers/feature_flags/strategy_entity.rb

12 lines
284 B
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# frozen_string_literal: true
module FeatureFlags
class StrategyEntity < Grape::Entity
expose :id
expose :name
expose :parameters
expose :scopes, with: FeatureFlags::ScopeEntity
expose :user_list, with: FeatureFlags::UserListEntity, expose_nil: false
end
end