Class: TopicDetailSerializer

Inherits:
TopicSerializer show all
Defined in:
app/serializers/topic_detail_serializer.rb

Instance Method Summary collapse

Methods inherited from TopicSerializer

#deleted, #excellent, #user

Methods inherited from BaseSerializer

#abilities, #cache, #can?, #current_ability, #owner?

Instance Method Details

#hitsObject


4
5
6
# File 'app/serializers/topic_detail_serializer.rb', line 4

def hits
  object.hits.to_i
end