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/age_ranges/index.json.jbuilder
2023-01-06 17:18:44 +01:00

7 lines
157 B
Ruby

# frozen_string_literal: true
json.array!(@age_ranges) do |ar|
json.extract! ar, :id, :name
json.related_to ar.events.count if current_user&.admin?
end