15 lines
378 B
Ruby
15 lines
378 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class IssuableSidebarExtrasEntity < Grape::Entity
|
||
|
include RequestAwareEntity
|
||
|
include TimeTrackableEntity
|
||
|
|
||
|
expose :participants, using: ::API::Entities::UserBasic do |issuable|
|
||
|
issuable.participants(request.current_user)
|
||
|
end
|
||
|
|
||
|
expose :subscribed do |issuable|
|
||
|
issuable.subscribed?(request.current_user, issuable.project)
|
||
|
end
|
||
|
end
|