Sha256: 841c31f50cc78f5e168fc50f7d919dec8f1aa112456fd656b8f5582bfcf005b9
Contents?: true
Size: 247 Bytes
Versions: 2
Compression:
Stored size: 247 Bytes
Contents
class NotifyUser::NotificationSerializer < ActiveModel::Serializer require 'cgi' root :notifications attributes :id, :type, :message, :read, :params, :created_at def message object.message end def read object.read? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
notify_user-0.3.2 | app/serializers/notify_user/notification_serializer.rb |
notify_user-0.3.1 | app/serializers/notify_user/notification_serializer.rb |