Class: TagSerializer
- Inherits:
-
ApplicationSerializer
- Object
- ActiveModel::Serializer
- ApplicationSerializer
- TagSerializer
- Defined in:
- app/serializers/tag_serializer.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from ApplicationSerializer
expire_cache_fragment!, fragment_cache
Methods inherited from ActiveModel::Serializer
Instance Method Details
#staff ⇒ Object
10 11 12 |
# File 'app/serializers/tag_serializer.rb', line 10 def staff DiscourseTagging.staff_tag_names.include?(name) end |
#topic_count ⇒ Object
6 7 8 |
# File 'app/serializers/tag_serializer.rb', line 6 def topic_count object.public_send(Tag.topic_count_column(scope)) end |