1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-03 14:24:23 +01:00
fab-manager/app/views/api/custom_assets/show.json.jbuilder

17 lines
450 B
Plaintext
Raw Normal View History

2023-02-24 17:26:55 +01:00
# frozen_string_literal: true
2016-03-23 18:39:41 +01:00
json.custom_asset do
if @custom_asset
json.extract! @custom_asset, :id, :name
2023-02-24 17:26:55 +01:00
if @custom_asset.custom_asset_file
json.custom_asset_file_attributes do
json.id @custom_asset.custom_asset_file.id
json.attachment @custom_asset.custom_asset_file.attachment_identifier
json.attachment_url @custom_asset.custom_asset_file.attachment_url
end
end
2016-03-23 18:39:41 +01:00
else
json.nil!
end
2023-02-24 17:26:55 +01:00
end