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/user_packs/index.json.jbuilder

12 lines
321 B
Plaintext
Raw Normal View History

2021-06-29 11:14:36 +02:00
# frozen_string_literal: true
json.array!(@user_packs) do |user_pack|
json.extract! user_pack, :id, :minutes_used, :expires_at
2021-06-29 11:14:36 +02:00
json.prepaid_pack do
json.extract! user_pack.prepaid_pack, :minutes, :priceable_type
json.priceable do
json.extract! user_pack.prepaid_pack.priceable, :name
end
2021-06-29 11:14:36 +02:00
end
end