mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-29 10:49:04 +01:00
This commit is contained in:
parent
68d9dcd425
commit
455a754081
1 changed files with 8 additions and 0 deletions
|
@ -9,4 +9,12 @@ class REST::ReportSerializer < ActiveModel::Serializer
|
||||||
def id
|
def id
|
||||||
object.id.to_s
|
object.id.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def status_ids
|
||||||
|
object&.status_ids&.map(&:to_s)
|
||||||
|
end
|
||||||
|
|
||||||
|
def rule_ids
|
||||||
|
object&.rule_ids&.map(&:to_s)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue