mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 22:26:26 +08:00
34b7bee568
* This commit also introduces a `TopicStatusUpdate` model to support other forms of deferred topic status update in the future.
12 lines
263 B
Ruby
12 lines
263 B
Ruby
class TopicStatusUpdateSerializer < ApplicationSerializer
|
|
attributes :id,
|
|
:execute_at,
|
|
:duration,
|
|
:based_on_last_post,
|
|
:status_type
|
|
|
|
def status_type
|
|
TopicStatusUpdate.types[object.status_type]
|
|
end
|
|
end
|