This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/serializers/topic_status_update_serializer.rb

13 lines
290 B
Ruby

class TopicStatusUpdateSerializer < ApplicationSerializer
attributes :id,
:execute_at,
:duration,
:based_on_last_post,
:status_type,
:category_id
def status_type
TopicStatusUpdate.types[object.status_type]
end
end