panda-cms 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 573c4b81cbf46f968761a96360d04aecfeb110eae011e5cd5a4f901d89bf380b
|
4
|
+
data.tar.gz: cddd1b2705dfa48942f13605102cc8c80940ad959589c46c86f08f609398ca24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42ce696d0d74e33e93cd07fab7a0f697a4257da945613995f4d2aa01aa75f78d2c05ffd18667887705db5fd3aafcefbaec5a8741be6f18b16f757e8f0c4957e7
|
7
|
+
data.tar.gz: 15ccdd29c804e25189aff2656bdb37c6e52ca6d642892eeed336b7685319465193436f340c61c19b14c1ba670bf51aa85c0198334d9b4231080136a212cf413c
|
@@ -2,8 +2,15 @@
|
|
2
2
|
|
3
3
|
class ConvertHtmlContentToEditorJs < ActiveRecord::Migration[7.1]
|
4
4
|
def up
|
5
|
-
# First, let's
|
6
|
-
|
5
|
+
# First, let's check if the converter service exists
|
6
|
+
converter_path = Panda::CMS::Engine.root.join("app/services/panda/cms/html_to_editor_js_converter.rb")
|
7
|
+
|
8
|
+
unless File.exist?(converter_path)
|
9
|
+
Rails.logger.info "HtmlToEditorJsConverter service not found. Skipping HTML to EditorJS conversion."
|
10
|
+
return
|
11
|
+
end
|
12
|
+
|
13
|
+
require converter_path
|
7
14
|
|
8
15
|
# Check if we have any existing valid EditorJS content
|
9
16
|
existing_editor_js = Panda::CMS::BlockContent.find_each.any? do |block_content|
|
data/lib/panda-cms/version.rb
CHANGED