gitlab-org--gitlab-foss/app/serializers/issuable_sidebar_todo_entity.rb
2018-12-19 17:58:53 +08:00

11 lines
200 B
Ruby

# frozen_string_literal: true
class IssuableSidebarTodoEntity < Grape::Entity
include Gitlab::Routing
expose :id
expose :delete_path do |todo|
dashboard_todo_path(todo) if todo
end
end