From ccbf571be4aed04629c4cb3b9db5bf5be1a34192 Mon Sep 17 00:00:00 2001 From: "Stanko K.R." Date: Mon, 2 Feb 2026 12:51:46 +0100 Subject: [PATCH] Fix crash on commentable check --- app/models/comment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/comment.rb b/app/models/comment.rb index 70a36562f..ec916ccc3 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -25,7 +25,7 @@ class Comment < ApplicationRecord private def card_is_commentable - errors.add(:card, "does not allow comments") unless card.commentable? + errors.add(:card, "does not allow comments") unless card&.commentable? end def watch_card_by_creator