From 84bd1d6faead9eaa33fe1d0f6b494e80f1b0613a Mon Sep 17 00:00:00 2001 From: yystopf Date: Wed, 25 Mar 2026 14:06:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E5=B8=96=E5=AD=90?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=9E=9A=E4=B8=BE=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/memo.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/memo.rb b/app/models/memo.rb index 850d76fee..bb71e9014 100644 --- a/app/models/memo.rb +++ b/app/models/memo.rb @@ -46,6 +46,8 @@ class Memo < ApplicationRecord belongs_to :author, :class_name => "User", foreign_key: :author_id, counter_cache: true + enum destroy_status: {common: 0, apply_destroy: 1} + def meno_tag_name tag_id.to_i > 3 ? "" : ["", "交流", "求助", "新闻"][tag_id.to_i] end