fixed 消息模板配置type

This commit is contained in:
“xxq250” 2022-08-10 17:23:27 +08:00
parent 964bef7896
commit ad8fed9440
1 changed files with 1 additions and 1 deletions

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