1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/views/api/credits/_credit.json.jbuilder

10 lines
257 B
Plaintext
Raw Normal View History

# frozen_string_literal: true
json.extract! credit, :id, :creditable_id, :creditable_type, :created_at, :updated_at, :plan_id, :hours
if credit.creditable
json.creditable do
json.id credit.creditable.id
json.name credit.creditable.name
end
end