From 58874f70bb039bde4e9e6c844924cbf7d1e757fe Mon Sep 17 00:00:00 2001 From: Splines Date: Thu, 14 Dec 2023 16:19:46 +0100 Subject: [PATCH] Replace problematic touch_all by touch --- app/controllers/commontator/comments_controller.rb | 2 +- app/controllers/media_controller.rb | 2 +- app/models/answer.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/commontator/comments_controller.rb b/app/controllers/commontator/comments_controller.rb index 8db2aa298..31058b3da 100644 --- a/app/controllers/commontator/comments_controller.rb +++ b/app/controllers/commontator/comments_controller.rb @@ -215,7 +215,7 @@ def update_unread_status @update_icon = true return end - @reader.touch_all + @reader.touch end def unseen_comments? diff --git a/app/controllers/media_controller.rb b/app/controllers/media_controller.rb index 701ea7dcd..cfb78dd6e 100644 --- a/app/controllers/media_controller.rb +++ b/app/controllers/media_controller.rb @@ -396,7 +396,7 @@ def update_tags return unless current_user.admin || @medium.edited_with_inheritance_by?(current_user) @medium.tags = Tag.where(id: params[:tag_ids]) - @medium.touch_all + @medium.touch end def register_download diff --git a/app/models/answer.rb b/app/models/answer.rb index 6ad6ebe63..ea407d192 100644 --- a/app/models/answer.rb +++ b/app/models/answer.rb @@ -41,6 +41,6 @@ def update_quizzes end def touch_medium - question.becomes(Medium).touch_all + question.becomes(Medium).touch end end