D
Size: a a a
D
EB
EB
EB
EB
EB
EB
RV
RP
relation.map{ |r| ModelDecorator.new(r).json } ?EB
EB
EB
EB
class NotificationSerializer
attributes :guid, :recipient, :text
attribute :params do |object|
transport = object.current_rule.transport
if transport.push?
{
title: object.title,
action: object.current_rule.title
}
end
end
attribute :expected_status do |object|
{ expected_status: object.current_rule.expected_status }
end
end
RP
EB
RP
EB
RV
RV
EB