bullet_train-super_scaffolding 1.32.0 → 1.33.0
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 +4 -4
- data/lib/bullet_train/super_scaffolding/version.rb +1 -1
- data/lib/scaffolding/transformer.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0da17f03e73107e5987c35ea8ebba84818b252175e903fca7e259a7f6886f181
|
|
4
|
+
data.tar.gz: cf674be39ac9915bcf0bdb7bfe042f7bb71135d1186866fc2850d63796a0665b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e184f11fd8a711c74fa5aeda5fd5d572f2e3cb44aef91147ed73be5005d773ce9bf8d2e12244f2e722e369a89ae30acc30fd92680dcb87c814d9d6b8b7adbf1e
|
|
7
|
+
data.tar.gz: 25316050ce440296f7262d9e61ce4512e762f2967c2d985c4b214aff65bec2b3f1badfd8a23430403c5e7f3eb98a0d6a6c1dd0c59bfb9fb1c000b323c6e6af11
|
|
@@ -799,6 +799,10 @@ class Scaffolding::Transformer
|
|
|
799
799
|
field_attributes[:color_picker_field_options] = "t('#{child.pluralize.underscore}.fields.#{attribute.name}.options')"
|
|
800
800
|
end
|
|
801
801
|
|
|
802
|
+
if attribute.type == "code_editor" && attribute.options[:language]
|
|
803
|
+
field_attributes[:language] = "\"#{attribute.options[:language]}\""
|
|
804
|
+
end
|
|
805
|
+
|
|
802
806
|
field_content = "<%= render 'shared/fields/#{attribute.type}'#{", " if field_attributes.any?}#{field_attributes.map { |key, value| "#{key}: #{value}" }.join(", ")} %>"
|
|
803
807
|
|
|
804
808
|
# TODO Add more of these from other packages?
|