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 +4 -4
- data/app/inputs/nested_select_input.rb +1 -0
- data/lib/activeadmin_addons/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: 28caf3beead10aaa33f1f2e8ee9865356b93c3dc
|
4
|
+
data.tar.gz: 3771079867fd2afe5277fab4a35be91564d0c4fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|