From 97e20c5cd7046cf9634f65a61a9f76329a6e9fab Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Tue, 8 Jul 2025 16:57:48 -0500 Subject: [PATCH] Make nil safe --- app/models/concerns/attachments.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/attachments.rb b/app/models/concerns/attachments.rb index c5d1125c6..de0dcea70 100644 --- a/app/models/concerns/attachments.rb +++ b/app/models/concerns/attachments.rb @@ -2,7 +2,7 @@ module Attachments extend ActiveSupport::Concern def attachments - rich_text_record.embeds + rich_text_record&.embeds || [] end def has_attachments?