mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 13:13:44 +08:00
10 lines
250 B
Ruby
10 lines
250 B
Ruby
# frozen_string_literal: true
|
|
|
|
class TopicTimerSerializer < ApplicationSerializer
|
|
attributes :id, :execute_at, :duration_minutes, :based_on_last_post, :status_type, :category_id
|
|
|
|
def status_type
|
|
TopicTimer.types[object.status_type]
|
|
end
|
|
end
|