forked from Trustie/forgeplus
新增:帖子删除枚举值
This commit is contained in:
parent
c53decf753
commit
84bd1d6fae
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue