fixed 消息模板配置type

This commit is contained in:
“xxq250”
2022-08-10 17:23:27 +08:00
parent 9ce7cdf0c3
commit 4918fda2e1

View File

@@ -114,6 +114,6 @@ class MessageTemplate < ApplicationRecord
end
def simple_type
self.type.split("::")[-1]
self.type.to_s.split("::")[-1]
end
end