From: Tom Hughes Date: Fri, 6 Oct 2023 18:07:19 +0000 (+0100) Subject: Fix rails 7.1.0 deprecation warning X-Git-Tag: live~1052 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/f6d1b6cda4a4490b439f8f4b0b6b3034f4fc463e Fix rails 7.1.0 deprecation warning --- 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)