1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-11 22:24:21 +01:00
fab-manager/app/views/api/plans/shallow_index.json.jbuilder

13 lines
374 B
Plaintext
Raw Normal View History

2016-03-23 18:39:41 +01:00
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.00
2016-03-23 18:39:41 +01:00
json.interval plan.interval
json.interval_count plan.interval_count
json.type plan.type
2017-10-04 18:56:39 +02:00
json.disabled plan.disabled
2016-03-23 18:39:41 +01:00
json.plan_file_url plan.plan_file.attachment_url if plan.plan_file
end