From f6d1b6cda4a4490b439f8f4b0b6b3034f4fc463e Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 6 Oct 2023 19:07:19 +0100 Subject: [PATCH 1/1] Fix rails 7.1.0 deprecation warning --- app/controllers/diary_entries_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/diary_entries_controller.rb b/app/controllers/diary_entries_controller.rb index 0b2fcb73e..6db32797a 100644 --- a/app/controllers/diary_entries_controller.rb +++ b/app/controllers/diary_entries_controller.rb @@ -235,7 +235,7 @@ class DiaryEntriesController < ApplicationController def comments @title = t ".title", :user => @user.display_name - comments = DiaryComment.where(:users => @user) + comments = DiaryComment.where(:user => @user) comments = comments.visible unless can? :unhidecomment, DiaryEntry @params = params.permit(:display_name, :before, :after) -- 2.39.5