mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
7 lines
327 B
Ruby
7 lines
327 B
Ruby
json.extract! @notification, :id, :notification_type_id, :notification_type, :created_at, :is_read
|
|
json.attached_object @notification.attached_object
|
|
json.message do
|
|
json.partial! "/api/notifications/#{@notification.notification_type}", notification: @notification
|
|
end
|
|
json.url notification_url(@notification, format: :json)
|