Class: GroupPostSerializer
Instance Method Summary
collapse
#cooked, #excerpt, #include_truncated?, included, #truncated
expire_cache_fragment!, fragment_cache
#include!
Instance Method Details
#category_id ⇒ Object
21
22
23
|
# File 'app/serializers/group_post_serializer.rb', line 21
def category_id
object.topic.category_id
end
|
#include_user_long_name? ⇒ Boolean
17
18
19
|
# File 'app/serializers/group_post_serializer.rb', line 17
def include_user_long_name?
SiteSetting.enable_names?
end
|
#title ⇒ Object
13
14
15
|
# File 'app/serializers/group_post_serializer.rb', line 13
def title
object.topic.title
end
|