mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-03 14:24:23 +01:00
7 lines
175 B
Ruby
7 lines
175 B
Ruby
# frozen_string_literal: true
|
|
|
|
json.array!(@categories) do |category|
|
|
json.extract! category, :id, :name
|
|
json.related_to category.events.count if current_user&.admin?
|
|
end
|