def create_contents
      definition.fetch('contents', []).each do |attributes|
        Content.create(attributes.merge(element: self))
      end
    end
def create_contents
      definition.fetch('contents', []).each do |attributes|
        Content.create(attributes.merge(element: self))
      end
    end
creates the contents for this element as described in the elements.yml