1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/views/api/projects/last_published.json.jbuilder
2019-06-06 16:34:53 +02:00

8 lines
264 B
Ruby

# frozen_string_literal: true
json.array!(@projects) do |project|
json.extract! project, :id, :name, :description, :slug
json.url project_url(project, format: :json)
json.project_image project.project_image.attachment.large.url if project.project_image
end