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/credits/show.json.jbuilder

6 lines
218 B
Plaintext
Raw Normal View History

2016-03-23 18:39:41 +01:00
json.extract! @credit, :id, :creditable_id, :creditable_type, :created_at, :updated_at, :plan_id, :hours
json.creditable do
json.id @credit.creditable.id
json.name @credit.creditable.name
end if @credit.creditable