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

9 lines
291 B
Plaintext
Raw Normal View History

2016-06-24 18:26:11 +02:00
json.cache! [@events, @page] do
json.array!(@events) do |event|
json.partial! 'api/events/event', event: event
json.event_image_small event.event_image.attachment.small.url if event.event_image
json.url event_url(event, format: :json)
json.nb_total_events @total
end
2015-05-05 03:10:25 +02:00
end