rails_admin_json_editor 0.0.9 → 0.0.10

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
  SHA1:
3
- metadata.gz: 6bc981b62642d2d92d10afd887cc9d2a1d174270
4
- data.tar.gz: 738e60bf27875bc7169171887cf54c5e7ad5994f
3
+ metadata.gz: ad72da56dc8061a7defaef666a3b38caae3300d7
4
+ data.tar.gz: 4b609cd5acecf4031b3c8e6a6bbec2322df8f9f0
5
5
  SHA512:
6
- metadata.gz: 0ea4556d7bc4f0213270dd9b052524642dbc01e58b0ab8e8f6f8e8447bb84611dde769cb2afc8d7a7c00e151cd2d5aec9af8715bd083a6bc111d336989e70485
7
- data.tar.gz: 0569c9fac21f10d1aa99f1bad5966cd487f9e045a25e3b5a3a5d034a91ecacb4662e8be093d26301bb5cfc07305ba839fc8ef8426ca348545c65a53c237ab5fe
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
- @allowed_nested_component_types = options[:components] unless options[:components].nil?
80
- @allowed_nested_component_types = [options[:component]] unless options[:component].nil?
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
 
@@ -1,3 +1,3 @@
1
1
  module RailsAdminJsonEditor
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_json_editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jasper Haggenburg