1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-20 14:54:15 +01:00
fab-manager/app/views/api/credits/user_resource.json.jbuilder

9 lines
230 B
Plaintext
Raw Normal View History

# frozen_string_literal: true
json.array!(@credits) do |credit|
json.partial! 'api/credits/credits', credit: credit
json.used_credits credit.users_credits do |uc|
json.extract! uc, :id, :created_at, :hours_used
end
end