1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-04 15:24:23 +01:00
fab-manager/app/views/api/events/upcoming.json.jbuilder
2022-12-21 14:05:14 +01:00

7 lines
203 B
Ruby

# frozen_string_literal: true
json.array!(@events) do |event|
json.partial! 'api/events/event', event: event
json.event_image_medium event.event_image.attachment.medium.url if event.event_image
end