1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-12 23:09:03 +01:00
fab-manager/app/views/api/trainings/index.json.jbuilder
2022-12-21 14:05:13 +01:00

7 lines
192 B
Ruby

# frozen_string_literal: true
json.array!(@trainings) do |training|
json.partial! 'api/trainings/training', training: training
json.plan_ids training.plan_ids if current_user&.admin?
end