Logo
Explore Help
Sign In
IntenseWebs/discourse
3
0
Fork 0
You've already forked discourse
mirror of https://github.com/discourse/discourse.git synced 2025-02-25 18:55:32 -06:00
Code Issues Packages Projects Releases Wiki Activity
Files
3c8b376e4ad1dc2e72c3a8429cc3f170794ff9ec
discourse/app/serializers/topic_timer_serializer.rb

13 lines
276 B
Ruby
Raw Normal View History

rename topic_status_update to topic_timer
2017-05-11 18:23:18 -04:00
class TopicTimerSerializer < ApplicationSerializer
FEATURE: Allow admin to auto reopen at topic. * This commit also introduces a `TopicStatusUpdate` model to support other forms of deferred topic status update in the future.
2017-03-22 11:12:02 +08:00
attributes :id,
:execute_at,
:duration,
:based_on_last_post,
FEATURE: Allow admins to schedule a topic to be published in the future.
2017-04-03 17:28:41 +08:00
:status_type,
:category_id
FEATURE: Allow admin to auto reopen at topic. * This commit also introduces a `TopicStatusUpdate` model to support other forms of deferred topic status update in the future.
2017-03-22 11:12:02 +08:00
def status_type
rename topic_status_update to topic_timer
2017-05-11 18:23:18 -04:00
TopicTimer.types[object.status_type]
FEATURE: Allow admin to auto reopen at topic. * This commit also introduces a `TopicStatusUpdate` model to support other forms of deferred topic status update in the future.
2017-03-22 11:12:02 +08:00
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 99ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API