diff --git a/app/models/communication/block.rb b/app/models/communication/block.rb index 9fe79cf0f33ea1761474c979d1f3f63f8b1997e9..57d27192282bbab283fea0b62cfce818f6fd8e6a 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 5cefb2f8f65ac610ebb6bd735ea33d86764c170b..b40b0f7b195beca265598f0c695a9713164a411c 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