Module: IssuableLinks

Included in:
Projects::IssueLinksController
Defined in:
app/controllers/concerns/issuable_links.rb,
app/services/issuable_links/list_service.rb,
app/services/issuable_links/create_service.rb,
app/services/issuable_links/destroy_service.rb

Defined Under Namespace

Classes: CreateService, DestroyService, ListService

Instance Method Summary collapse

Instance Method Details

#createObject


8
9
10
11
12
# File 'app/controllers/concerns/issuable_links.rb', line 8

def create
  result = create_service.execute

  render json: { message: result[:message], issuables: issuables }, status: result[:http_status]
end

#destroyObject


14
15
16
17
18
# File 'app/controllers/concerns/issuable_links.rb', line 14

def destroy
  result = destroy_service.execute

  render json: { issuables: issuables }, status: result[:http_status]
end

#indexObject


4
5
6
# File 'app/controllers/concerns/issuable_links.rb', line 4

def index
  render json: issuables
end