2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-03-04 01:15:08 +08:00
discourse/app/serializers/topic_timer_serializer.rb
2023-01-09 14:14:59 +00:00

9 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