1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-13 23:48:55 +01:00
fab-manager/app/views/open_api/v1/plans/show.json.jbuilder

6 lines
257 B
Plaintext
Raw Normal View History

# 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