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: dc4ee5b44825540ef7be3f2cd04b748da867adf0
4
- data.tar.gz: 3b93f565e3cd0f77c54d2c4e8fc6bdcfd0585b29
3
+ metadata.gz: e618fad10f9ce658b5c974e0bb3cb659dfecd54d
4
+ data.tar.gz: abb269e47a0e601ef65763a28ec518f016afca3c
5
5
  SHA512:
6
- metadata.gz: 107f211110a72b54f7327c4ec06d279f95a8c8d511bedcdc74c30cf9b92f973e16374663660faa96bd1845be7761f0efd01bbc1b55794ea2d22bee6f519f5362
7
- data.tar.gz: 3a21fafcbe373d687d15a3f676c72267e18e036014ac7acecf9bd630be6cbdb6de210fcf8a304ef37c7c2d5ff10b44c1293a7691429edb943658f71c515d3887
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.downcase
97
+ @object.class.to_s.underscore.tr("/", "_")
98
98
  end
99
99
 
100
100
  def build_select_id(attribute)
101
- [@object.class.to_s.downcase, attribute.to_s].join("_")
101
+ [model_name, attribute.to_s].join("_")
102
102
  end
103
103
 
104
104
  def get_option(level_data, option, default)
@@ -1,3 +1,3 @@
1
1
  module ActiveadminAddons
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
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.9.2
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-05-27 00:00:00.000000000 Z
14
+ date: 2016-06-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: railties