mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 10:08:20 -05:00
12 lines
242 B
Ruby
12 lines
242 B
Ruby
require_dependency 'pinned_check'
|
|
|
|
class CategoryTopicSerializer < ListableTopicSerializer
|
|
|
|
attributes :visible, :closed, :archived, :pinned
|
|
has_one :category
|
|
|
|
def pinned
|
|
PinnedCheck.new(object, object.user_data).pinned?
|
|
end
|
|
|
|
end
|