mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-11 22:24:21 +01:00
11 lines
444 B
Ruby
11 lines
444 B
Ruby
json.array!(@projects) do |project|
|
|
json.extract! project, :id, :name, :description, :author_id, :licence_id, :slug
|
|
json.url project_url(project, format: :json)
|
|
json.project_image project.project_image.attachment.medium.url if project.project_image
|
|
json.machine_ids project.machine_ids
|
|
json.author_id project.author_id
|
|
json.user_ids project.user_ids
|
|
json.theme_ids project.theme_ids
|
|
json.component_ids project.component_ids
|
|
end
|