Skip to content
Snippets Groups Projects
Unverified Commit b1d306ce authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

contentful

parent abc5f4f0
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment