zhishi-engine/zhishi-backend

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

Summary

Maintainability
A
0 mins
Test Coverage
module Notifications
  class NewQuestionSerializer < QuestionSerializer
    attributes :type
    has_many :subscribers

    private
      def type
        'new.question'
      end

      def root
        :notification
      end
  end
end