Class: PostWordpressSerializer

Inherits:
BasicPostSerializer show all
Defined in:
app/serializers/post_wordpress_serializer.rb

Overview

The most basic attributes of a topic that we need to create a link for it.

Instance Attribute Summary

Attributes inherited from BasicPostSerializer

#topic_view

Instance Method Summary collapse

Methods inherited from BasicPostSerializer

#cooked, #cooked_hidden, #include_cooked_hidden?, #include_name?, #name, #post_custom_fields, #username

Methods inherited from ApplicationSerializer

expire_cache_fragment!, fragment_cache

Methods inherited from ActiveModel::Serializer

#include!

Instance Method Details

#avatar_templateObject



7
8
9
10
11
12
13
# File 'app/serializers/post_wordpress_serializer.rb', line 7

def avatar_template
  if object.user
    UrlHelper.absolute object.user.avatar_template
  else
    nil
  end
end