activeadmin_addons 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f35c37abc3c6361e637fdfae4484dae518fd15d
4
- data.tar.gz: 5a5a42f9603150ccc44af79854033b85bbbe5298
3
+ metadata.gz: 28caf3beead10aaa33f1f2e8ee9865356b93c3dc
4
+ data.tar.gz: 3771079867fd2afe5277fab4a35be91564d0c4fe
5
5
  SHA512:
6
- metadata.gz: b7557d81447d3971dd35c7695e803ef28a3a3804169ab48bba821109fda268e2afafc2081a612b77729e8b4a97ddee66644098a61669ea2432d6baba19898c76
7
- data.tar.gz: 9fd930622c5db38b81173452efa42bb4211da191598eafcbfefa195bf601ee0bfb8a03d9f6a4fd6eb174c513a963ad684db38904633ec486db9c56a880ab628c
6
+ metadata.gz: 8cc0a03a502d57f277ec11677a429f659754a9f29eab6de8d2c8e502dfba40a7fd6d4104d0e956832ccf34b307082a11da11a33da030cffedd84cc78595d5c18
7
+ data.tar.gz: f07f02b0dd21c59a6ddcd85fe4121324047518dc2f7e254fe09bad1ba576461c3dae8ef99c67ae9cb0c3b065e861ed0bf0f2fe29525af7a55ede632010143ac4
@@ -106,6 +106,7 @@ class NestedSelectInput < Formtastic::Inputs::StringInput
106
106
 
107
107
  def set_parent_value(level_data)
108
108
  parent_attribute = level_data[:parent_attribute]
109
+ return unless parent_attribute
109
110
  add_virtual_accessor(parent_attribute)
110
111
  instance = instance_from_attribute_name(level_data[:attribute])
111
112
  if instance && instance.respond_to?(parent_attribute)
@@ -1,3 +1,3 @@
1
1
  module ActiveadminAddons
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_addons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platanus