12 lines
263 B
Ruby
12 lines
263 B
Ruby
|
class TopicStatusUpdateSerializer < ApplicationSerializer
|
||
|
attributes :id,
|
||
|
:execute_at,
|
||
|
:duration,
|
||
|
:based_on_last_post,
|
||
|
:status_type
|
||
|
|
||
|
def status_type
|
||
|
TopicStatusUpdate.types[object.status_type]
|
||
|
end
|
||
|
end
|