This commit is contained in:
Kevin McConnell
2025-01-11 16:44:21 +00:00
parent febcb6c344
commit df1225e58d
+1 -1
View File
@@ -1,6 +1,6 @@
class Notification < ApplicationRecord
belongs_to :user
belongs_to :creator, class_name: 'User'
belongs_to :creator, class_name: "User"
belongs_to :resource, polymorphic: true
scope :unread, -> { where(read: false) }