mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-11 22:24:21 +01:00
657723bc22
index and show endpoints
6 lines
257 B
Ruby
6 lines
257 B
Ruby
# frozen_string_literal: true
|
|
|
|
json.partial! 'open_api/v1/plans/plan', plan: @plan
|
|
json.extract! @plan, :training_credit_nb, :is_rolling, :description, :type, :plan_category_id
|
|
json.file URI.join(root_url, @plan.plan_file.attachment.url) if @plan.plan_file
|