Skip to content

Commit

Permalink
Fix rails 7.1.0 deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Oct 6, 2023
1 parent fc2c4cc commit f6d1b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/diary_entries_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def unhidecomment
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)
Expand Down

0 comments on commit f6d1b6c

Please sign in to comment.