diff --git a/app/models/notification.rb b/app/models/notification.rb index fe50cadea..df2dc1a9c 100644 --- a/app/models/notification.rb +++ b/app/models/notification.rb @@ -2,7 +2,7 @@ class Notification < ActiveRecord::Base include Versions # version/notification_version.rb belongs_to :registrar, required: true - before_create -> { self.read = false } + before_create -> { self.read = false; true } scope :unread, -> { where(read: false) }