mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 07:26:04 +08:00
8ce836c039
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
|