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

7 lines
192 B
Plaintext
Raw Normal View History

# frozen_string_literal: true
json.array!(@trainings) do |training|
2022-11-08 10:45:39 +01:00
json.partial! 'api/trainings/training', training: training
json.plan_ids training.plan_ids if current_user&.admin?
2016-03-23 18:39:41 +01:00
end