Sha256: 65cf11468d967fc9d21c390a43d7a283e18862d0e744045d984497ef9c4aff93
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 Bytes
Contents
class NotifyUser::NotificationSerializer < ActiveModel::Serializer root :notifications attributes :id, :message, :read def message options[:template_renderer].render_to_string(:template => object.class.views[:mobile_sdk][:template_path].call(object), :locals => {params: object.params}, :layout => false) end def read object.read? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
notify_user-0.0.1 | app/serializers/notify_user/notification_serializer.rb |