From b1d306cefd135035c596a028de1682f8df6f49fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Fri, 8 Dec 2023 14:36:45 +0100 Subject: [PATCH] contentful --- app/models/communication/block.rb | 2 +- app/models/communication/block/heading.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/communication/block.rb b/app/models/communication/block.rb index 9fe79cf0f..57d271922 100644 --- a/app/models/communication/block.rb +++ b/app/models/communication/block.rb @@ -103,7 +103,7 @@ class Communication::Block < ApplicationRecord before_validation :set_university_and_website_from_about, on: :create def self.permitted_about_types - ApplicationRecord.model_names_with_concern(WithBlocks) + ApplicationRecord.model_names_with_concern(Contentful) end # When we set data from json, we pass it to the template. diff --git a/app/models/communication/block/heading.rb b/app/models/communication/block/heading.rb index 5cefb2f8f..b40b0f7b1 100644 --- a/app/models/communication/block/heading.rb +++ b/app/models/communication/block/heading.rb @@ -52,7 +52,7 @@ class Communication::Block::Heading < ApplicationRecord before_validation :compute_level def self.permitted_about_types - ApplicationRecord.model_names_with_concern(WithBlocks) + ApplicationRecord.model_names_with_concern(Contentful) end def references -- GitLab