Sha256: 322d0564c8df4486cca013ac60c4efbca48015c63d89ac48ac197ae28431722a
Contents?: true
Size: 445 Bytes
Versions: 11
Compression:
Stored size: 445 Bytes
Contents
module SocialNetworking module Serializers # Serializes Comment models. class CommentSerializer < Serializer def to_serialized { createdAt: model.created_at, id: model.id, participantId: model.participant_id, isAdmin: model.participant.is_admin, text: model.text, itemType: model.item_type, itemId: model.item_id } end end end end
Version data entries
11 entries across 11 versions & 1 rubygems