From 14d20aa31239ad750e2f5967d493228908dd54ab Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Thu, 24 Feb 2022 17:41:48 +0100 Subject: [PATCH] fix blocks --- app/models/communication/website.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/communication/website.rb b/app/models/communication/website.rb index 4220037d6..c55bf1712 100644 --- a/app/models/communication/website.rb +++ b/app/models/communication/website.rb @@ -58,6 +58,10 @@ class Communication::Website < ApplicationRecord "data/website.yml" end + def blocks + Communication::Block.where(about_type: 'Communication::Website::Page', about_id: pages) + end + def git_dependencies(website) dependencies = ( [self, config_permalinks, config_base_url] + -- GitLab