mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
9 lines
290 B
Plaintext
9 lines
290 B
Plaintext
|
json.array!(@credits) do |credit|
|
||
|
json.extract! credit, :id, :creditable_id, :creditable_type, :plan_id, :hours
|
||
|
json.creditable do
|
||
|
json.id credit.creditable.id
|
||
|
json.name credit.creditable.name
|
||
|
end if credit.creditable.present?
|
||
|
json.url credit_url(credit, format: :json)
|
||
|
end
|