mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 08:32:26 +08:00
13 lines
290 B
Ruby
13 lines
290 B
Ruby
class TopicStatusUpdateSerializer < ApplicationSerializer
|
|
attributes :id,
|
|
:execute_at,
|
|
:duration,
|
|
:based_on_last_post,
|
|
:status_type,
|
|
:category_id
|
|
|
|
def status_type
|
|
TopicStatusUpdate.types[object.status_type]
|
|
end
|
|
end
|