1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-05 16:24:21 +01:00
fab-manager/app/views/api/spaces/index.json.jbuilder
2017-02-13 16:10:12 +01:00

5 lines
171 B
Ruby

json.array!(@spaces) do |space|
json.extract! space, :id, :name, :description, :slug
json.space_image space.space_image.attachment.medium.url if space.space_image
end