From d430d956de5efa33ed057e22b6ca03204c0ca70f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Tue, 4 Jul 2023 10:23:43 +0200 Subject: [PATCH] add references to heading --- app/models/communication/block/heading.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/communication/block/heading.rb b/app/models/communication/block/heading.rb index 8728e33a5..8de82dadb 100644 --- a/app/models/communication/block/heading.rb +++ b/app/models/communication/block/heading.rb @@ -50,6 +50,10 @@ class Communication::Block::Heading < ApplicationRecord before_validation :compute_level + def references + [about] + end + def to_s "#{title}" end -- GitLab