diff --git a/app/models/user_action.rb b/app/models/user_action.rb index 47ced4ed7..84cb93bf1 100644 --- a/app/models/user_action.rb +++ b/app/models/user_action.rb @@ -71,7 +71,7 @@ class UserAction < ApplicationRecord else return "上传附件地址:#{attachment.title}" end - when "MemoPassed" then "#{memo&.subject}" + when "MemoPassed" then "#{memo&.subject}" else "--" end end @@ -122,7 +122,7 @@ class UserAction < ApplicationRecord end def memo - memo = if action_type == "MemoPassed" && data_bank.present? + memo = if action_type == "MemoPassed" Memo.find_by(id: self.action_id) else nil