mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
7 lines
200 B
Ruby
7 lines
200 B
Ruby
# frozen_string_literal: true
|
|
|
|
json.array!(@credits) do |credit|
|
|
json.partial! 'api/credits/credit', credit: credit
|
|
json.hours_used credit.users_credits.find_by(user_id: @user.id)&.hours_used
|
|
end
|