]> git.openstreetmap.org Git - rails.git/commitdiff
Fix rails 7.1.0 deprecation warning
authorTom Hughes <tom@compton.nu>
Fri, 6 Oct 2023 18:07:19 +0000 (19:07 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 6 Oct 2023 18:07:47 +0000 (19:07 +0100)
app/controllers/diary_entries_controller.rb

index 0b2fcb73e1a5f85a34aacd6173d9dc3a74024390..6db32797adffe5c582a381f8000781ae4090e97e 100644 (file)
@@ -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)