From dcc1f5fb0d47c80eca13202069d1d00756e55454 Mon Sep 17 00:00:00 2001
From: alexisben <alexiben7@gmail.com>
Date: Wed, 6 Jul 2022 20:45:08 +0200
Subject: [PATCH] Fix code component

---
 app/models/communication/block/component/code.rb | 4 +++-
 db/schema.rb                                     | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/models/communication/block/component/code.rb b/app/models/communication/block/component/code.rb
index 9e7833203..e85840968 100644
--- a/app/models/communication/block/component/code.rb
+++ b/app/models/communication/block/component/code.rb
@@ -1,4 +1,6 @@
 class Communication::Block::Component::Code < Communication::Block::Component::Base
-
+    def data=(value)
+        @data = value
+    end
 end
   
\ No newline at end of file
diff --git a/db/schema.rb b/db/schema.rb
index 245ec6dae..3a8420e94 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -303,10 +303,10 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do
     t.text "github_path"
     t.string "featured_image_alt"
     t.text "text"
+    t.text "description_short"
     t.string "breadcrumb_title"
     t.text "header_text"
     t.integer "kind"
-    t.text "description_short"
     t.string "bodyclass"
     t.uuid "language_id"
     t.text "featured_image_credit"
-- 
GitLab