1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-04 15:24:23 +01:00
fab-manager/app/views/api/plans/shallow_index.json.jbuilder
2017-10-04 18:56:39 +02:00

13 lines
373 B
Ruby

json.array!(@plans) do |plan|
json.id plan.id
json.ui_weight plan.ui_weight
json.group_id plan.group_id
json.base_name plan.base_name
json.amount plan.amount / 100.0
json.interval plan.interval
json.interval_count plan.interval_count
json.type plan.type
json.disabled plan.disabled
json.plan_file_url plan.plan_file.attachment_url if plan.plan_file
end