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
2015-05-05 03:10:25 +02:00

6 lines
233 B
Ruby

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