mirror of
https://github.com/discourse/discourse.git
synced 2025-02-13 23:32:51 +08:00
![Bianca Nenciu](/assets/img/avatar_default.png)
When lazy load categories is enabled, categories should be loaded with user activity items and drafts because the categories may not be preloaded on the client side.
6 lines
149 B
Ruby
6 lines
149 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CategoryBadgeSerializer < ApplicationSerializer
|
|
attributes :id, :name, :color, :slug, :parent_category_id
|
|
end
|