Class: TagSerializer

Inherits:
ApplicationSerializer show all
Defined in:
app/serializers/tag_serializer.rb

Direct Known Subclasses

DetailedTagSerializer

Instance Method Summary collapse

Methods inherited from ApplicationSerializer

expire_cache_fragment!, fragment_cache

Methods inherited from ActiveModel::Serializer

#include!

Instance Method Details

#staffObject



10
11
12
# File 'app/serializers/tag_serializer.rb', line 10

def staff
  DiscourseTagging.staff_tag_names.include?(name)
end

#topic_countObject



6
7
8
# File 'app/serializers/tag_serializer.rb', line 6

def topic_count
  object.public_send(Tag.topic_count_column(scope))
end