mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 04:35:45 +08:00
fix: message template simple type
This commit is contained in:
@@ -64,4 +64,8 @@ class MessageTemplate <ApplicationRecord
|
||||
def self.receivers_string(receivers)
|
||||
receivers.pluck(:id).join(",")
|
||||
end
|
||||
|
||||
def simple_type
|
||||
self.type.split("::")[-1]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user