mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-12 23:09:03 +01:00
7 lines
192 B
Ruby
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
|