This commit is contained in:
yystopf 2021-10-15 15:02:56 +08:00
parent 1dcc38f617
commit 0885b7d75d
1 changed files with 0 additions and 4 deletions

View File

@ -17,8 +17,4 @@ class SystemNotification < ApplicationRecord
scope :is_top, lambda { where(is_top: true) }
def read_member?(user_id)
self.system_notification_histories.where(user_id: user_id).present? ? true : false
end
end