rails_admin_json_editor 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_admin_json_editor.rb +5 -2
- data/lib/rails_admin_json_editor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad72da56dc8061a7defaef666a3b38caae3300d7
|
4
|
+
data.tar.gz: 4b609cd5acecf4031b3c8e6a6bbec2322df8f9f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ee2f715498d65c1eeb0ebd86ae214e4e2fcc1bf5a8283363f2c2f9110f9f2e1a1814e09760d2f6c1ed56406c7c68ec56b388f3b41d472261b46ee4754f35bbd
|
7
|
+
data.tar.gz: b3eb519dab6d9af2b28b81b9795ae38dc207072a678611641a10ff47a4f4fa59861e8204b70bd9cfdcf63e1a83bdf0976489630c425fb1ba76f996bfadadfc28
|
@@ -76,8 +76,11 @@ module RailsAdmin
|
|
76
76
|
@label = name.to_s.humanize
|
77
77
|
|
78
78
|
if type == :list
|
79
|
-
|
80
|
-
|
79
|
+
if options[:components].nil? && options[:component].nil?
|
80
|
+
raise "At least one component should be set for JsonEditor::Field with type => :list"
|
81
|
+
end
|
82
|
+
|
83
|
+
@allowed_nested_component_types = options[:components].nil? ? [options[:component]] : options[:components]
|
81
84
|
end
|
82
85
|
end
|
83
86
|
|