mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-10 11:53:35 +01:00
11 lines
269 B
Ruby
11 lines
269 B
Ruby
# frozen_string_literal: true
|
|
|
|
class REST::NoticeSerializer < ActiveModel::Serializer
|
|
class ActionSerializer < ActiveModel::Serializer
|
|
attributes :label, :url
|
|
end
|
|
|
|
attributes :id, :icon, :title, :message
|
|
|
|
has_many :actions, serializer: ActionSerializer
|
|
end
|