1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/app/views/api/projects/index.json.jbuilder

15 lines
406 B
Plaintext
Raw Normal View History

2019-06-06 16:34:53 +02:00
# frozen_string_literal: true
json.projects @projects do |project|
json.extract! project, :id, :name, :licence_id, :slug, :state, :status
json.description sanitize(project.description)
2019-06-06 16:34:53 +02:00
json.author_id project.author.user_id
2015-05-05 03:10:25 +02:00
json.project_image project.project_image.attachment.medium.url if project.project_image
json.user_ids project.user_ids
end
json.meta do
json.total @total if @total
2015-05-05 03:10:25 +02:00
end