From b0e3062fdf2de62b25f8426ae75683fab2b284f1 Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Thu, 5 Dec 2019 19:09:50 +0530 Subject: [PATCH] Fix the 'PostMover' spec. --- app/models/notification.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/models/notification.rb b/app/models/notification.rb index fc0e60805b0..9b907bc3470 100644 --- a/app/models/notification.rb +++ b/app/models/notification.rb @@ -232,6 +232,11 @@ class Notification < ActiveRecord::Base Post.where(topic: topic_id, post_number: post_number).pluck_first(:id) end + def reload(options = nil) + super + @data_hash = nil + end + protected def refresh_notification_count