debian-mirror-gitlab/lib/api/entities/board.rb

17 lines
348 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
module API
module Entities
class Board < Grape::Entity
expose :id
expose :project, using: Entities::BasicProjectDetails
expose :lists, using: Entities::List do |board|
board.destroyable_lists
end
end
end
end
API::Entities::Board.prepend_if_ee('EE::API::Entities::Board')