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/trainings/show.json.jbuilder

3 lines
190 B
Ruby

json.extract! @training, :id, :name, :description, :machine_ids, :nb_total_places, :public_page
json.training_image @training.training_image.attachment.large.url if @training.training_image