mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 05:29:17 -06: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
|