active_admin-cep_auto_complete 0.2.4 → 0.2.5

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: efcb5aa1332ef8a8c7a35d9101ee59aa728c4280
4
- data.tar.gz: 7ad31f43948b925f7dbd323baf94da16e4abe573
3
+ metadata.gz: f4c35aa68d64d14e9f72573091af1b1d5d6201b6
4
+ data.tar.gz: 8afaa3942ba1e61965ff733da421433316d6eef3
5
5
  SHA512:
6
- metadata.gz: 887e16899f0838306b9495eedddc4af1d41d37355a3897138228cca9f25b97bf5e1f3fa73afd231d6c7c5a3bb7d3183be7d6930330ebe749a8c5b9e93048e57c
7
- data.tar.gz: d690f80aa65e384e242547a89603f7a49c80e259efc77f6a8e321eb104b51b0bd85595bb5809a85a9df0a34cfe463558583d6780ee1513b0d863d17aab1976ac
6
+ metadata.gz: 74330aa947006fcb8b2bdccbf2b23e1ca98047837da26218126d09317cf337a9ab16c57e5716b115e92a5a5a8b2313e125dbb9469a1ad29581e366aa17a5db25
7
+ data.tar.gz: 57ac10a7c0bcf80114289d4e697196fc0563afd8cf1e5ae4e4c03f37a869c81fd87639690b4ecac062cd2c0223347a75110ee5b77f47b28564c96d005bf1bc21
@@ -105,6 +105,15 @@
105
105
 
106
106
  $(document).ready(function() {
107
107
  CepInput.attach('.cep-auto-complete');
108
+
109
+ $('.has_many_add').each(function() {
110
+ var self = $(this);
111
+ var parent = self.parent('.has_many_container');
112
+
113
+ parent.on('has_many_add:after', function(e, fieldset) {
114
+ CepInput.attach($(fieldset).find('.cep-auto-complete'));
115
+ });
116
+ });
108
117
  });
109
118
 
110
119
  scope.CepInput = CepInput;
@@ -3,7 +3,7 @@ module ActiveAdmin
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 2
6
- PATCH = 4
6
+ PATCH = 5
7
7
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin-cep_auto_complete
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dhyego Fernando
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-02 00:00:00.000000000 Z
11
+ date: 2018-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties