effective_bootstrap 0.5.13 → 0.5.14

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
  SHA256:
3
- metadata.gz: 304054fe5d1bb425baf0317458767ca21d106349222cde6575928b0e94efcb15
4
- data.tar.gz: 4b158a21a29561a6aef46b56acc3121e69117d830089d8041f6f2bcb0ab6e149
3
+ metadata.gz: a22604e28dbee3070df8d7944ece53ab87516e4b73bdca830334eb32bf65b78a
4
+ data.tar.gz: e544a195ef852cc0830d0aab82445a018a021ea4560a57cad6c55a42829cb3c2
5
5
  SHA512:
6
- metadata.gz: c0012550c7d4c442ef9cfca8a036472f588cff000151d9afe1bcc0518d59833e531c4b62aafb8df3d42bf33d06360c5bb99977870ae8839ec8cbe3a052c87aa6
7
- data.tar.gz: fd72295a790e104d0f19ca95e7c8fea04d8b15bce7c607f798412afbd28f3ebd3319444b464f358a5fa0ab1732fcefd2316c7b907fb183e65bc3346e603ab9e2
6
+ metadata.gz: e20bacf7e6b0ec05e1b8d885e27b2e1a63b603dac1066f9085a0cd70245d59428b083ec5f741747b48c21f942d02bd67a677affaeda07c498df07723326f91bc
7
+ data.tar.gz: 4f200c3ebec853609bc632cf245a296284bba25cdab214f9f0fa58c8336edeb4867e20fa6df9c87dbaf616583c28c23e7874ef69525002926b9c29c27a83ff2c
@@ -27,7 +27,8 @@ module EffectiveFormBuilderHelper
27
27
  options[:remote] = true if respond_to?(:inline_datatable?) && inline_datatable?
28
28
 
29
29
  if options.delete(:remote) == true
30
- @_effective_remote_index ||= 0
30
+ @_effective_remote_index ||= {}
31
+ remote_index = remote_index + 1 if @_effective_remote_index[remote_index]
31
32
 
32
33
  if options[:html][:data].kind_of?(Hash)
33
34
  options[:html][:data][:remote] = true
@@ -38,6 +39,8 @@ module EffectiveFormBuilderHelper
38
39
  end
39
40
 
40
41
  html_id = "#{html_id}_#{remote_index}"
42
+
43
+ @_effective_remote_index[remote_index] = true
41
44
  end
42
45
 
43
46
  # Assign default ID
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.5.13'.freeze
2
+ VERSION = '0.5.14'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.13
4
+ version: 0.5.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-03 00:00:00.000000000 Z
11
+ date: 2019-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails