Skip to content

Commit

Permalink
Replace problematic touch_all by touch
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Dec 14, 2023
1 parent 9fa990a commit 58874f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/commontator/comments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def update_unread_status
@update_icon = true
return
end
@reader.touch_all
@reader.touch
end

def unseen_comments?
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/media_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/models/answer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ def update_quizzes
end

def touch_medium
question.becomes(Medium).touch_all
question.becomes(Medium).touch
end
end

0 comments on commit 58874f7

Please sign in to comment.