Fix the 'PostMover' spec.

This commit is contained in:
Vinoth Kannan 2019-12-05 19:09:50 +05:30
parent e6dfcda0bc
commit b0e3062fdf

View File

@ -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