Make nil safe

This commit is contained in:
Jason Zimdars
2025-07-08 16:57:48 -05:00
parent 642c03b51f
commit 97e20c5cd7
+1 -1
View File
@@ -2,7 +2,7 @@ module Attachments
extend ActiveSupport::Concern
def attachments
rich_text_record.embeds
rich_text_record&.embeds || []
end
def has_attachments?