activeadmin_addons 0.9.2 → 0.9.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e618fad10f9ce658b5c974e0bb3cb659dfecd54d
|
4
|
+
data.tar.gz: abb269e47a0e601ef65763a28ec518f016afca3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14daa20ce5ae1119b4827d42433a1c7d387ef61ed8e487b69bb9cf9a8fd2cc0d5ff8d49bfe302a7bdb093a0bb35a13945de34458b2c8439e06900086b5abf0b8
|
7
|
+
data.tar.gz: 4b09272bae8e79d483e7440e91fcec00f7c966bba06543a34f056569b4203a0f6811acb601cb150aca25d7d526376ae6443d1f9090917ba6ec2909f4784cbef7
|
@@ -149,7 +149,7 @@ $(function() {
|
|
149
149
|
if (!!parent) {
|
150
150
|
var parentSelector = '#' + model + '_' + parent;
|
151
151
|
|
152
|
-
$(parentSelector).on('change', function(e) {
|
152
|
+
$(el).parent().find(parentSelector).on('change', function(e) {
|
153
153
|
selectInstance.val(null).trigger('change');
|
154
154
|
parentId = e.val;
|
155
155
|
|
@@ -94,11 +94,11 @@ class NestedSelectInput < Formtastic::Inputs::StringInput
|
|
94
94
|
end
|
95
95
|
|
96
96
|
def model_name
|
97
|
-
@object.class.to_s.
|
97
|
+
@object.class.to_s.underscore.tr("/", "_")
|
98
98
|
end
|
99
99
|
|
100
100
|
def build_select_id(attribute)
|
101
|
-
[
|
101
|
+
[model_name, attribute.to_s].join("_")
|
102
102
|
end
|
103
103
|
|
104
104
|
def get_option(level_data, option, default)
|
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.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Platanus
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-
|
14
|
+
date: 2016-06-27 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: railties
|