Files
discourse/app/serializers/topic_timer_serializer.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
250 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-05-11 18:23:18 -04:00
class TopicTimerSerializer < ApplicationSerializer
attributes :id, :execute_at, :duration_minutes, :based_on_last_post, :status_type, :category_id
def status_type
2017-05-11 18:23:18 -04:00
TopicTimer.types[object.status_type]
end
end