mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 23:35:44 +08:00
13 lines
276 B
Ruby
13 lines
276 B
Ruby
class TopicTimerSerializer < ApplicationSerializer
|
|
attributes :id,
|
|
:execute_at,
|
|
:duration,
|
|
:based_on_last_post,
|
|
:status_type,
|
|
:category_id
|
|
|
|
def status_type
|
|
TopicTimer.types[object.status_type]
|
|
end
|
|
end
|