From ffb580bf5818f8452d4fcb058cc5042e149c3da6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Thu, 21 Oct 2021 14:56:31 +0200
Subject: [PATCH] fix

---
 app/views/action_text/content/_layout.html.erb | 1 +
 lib/tasks/app.rake                             | 3 +++
 2 files changed, 4 insertions(+)
 create mode 100644 app/views/action_text/content/_layout.html.erb

diff --git a/app/views/action_text/content/_layout.html.erb b/app/views/action_text/content/_layout.html.erb
new file mode 100644
index 000000000..898a50667
--- /dev/null
+++ b/app/views/action_text/content/_layout.html.erb
@@ -0,0 +1 @@
+<%= render_action_text_content(content) %>
diff --git a/lib/tasks/app.rake b/lib/tasks/app.rake
index c07398f91..059f70037 100644
--- a/lib/tasks/app.rake
+++ b/lib/tasks/app.rake
@@ -19,6 +19,9 @@ namespace :app do
       university.sms_sender_name ||= 'Osuny'
       university.save
     }
+    Communication::Website::Post.find_each { |post|
+      post.update(text: post.old_text)
+    }
   end
 
   namespace :db do
-- 
GitLab