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/subscriptions/_subscription.json.jbuilder

9 lines
275 B
Plaintext
Raw Normal View History

# frozen_string_literal: true
2016-03-23 18:39:41 +01:00
json.extract! subscription, :id, :plan_id
json.expired_at subscription.expired_at.iso8601
json.canceled_at subscription.canceled_at.iso8601 if subscription.canceled_at
json.plan do
json.partial! 'api/shared/plan', plan: subscription.plan
end