zhishi-engine/zhishi-backend

View on GitHub
app/serializers/notifications/new_vote_serializer.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Notifications
  class NewVoteSerializer < VoteSerializer
    attributes :type
    has_one :subscribers

    private
      def root
        :notification
      end

      def type
        'new.vote'
      end
  end
end