mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-09 00:13:49 +08:00
10 lines
347 B
Ruby
10 lines
347 B
Ruby
json.array! notifications do |notification|
|
|
json.id notification.id
|
|
json.title notification.title
|
|
json.message notification.message
|
|
json.type_of notification.type_of
|
|
json.created_at notification.created_at
|
|
if notification.type_of == 'recent_changes'
|
|
json.avatarThumb avatar_path(notification.generator_user, :icon_small)
|
|
end
|
|
end
|