effective_bootstrap 0.10.16 → 0.10.17

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: f2ee7de9ba30266343aaa73cd2befc53e19843b671053ea4eaa3c194c871e66c
4
- data.tar.gz: dafc65dd8d1fc7bc6cec00e7cf3012bb3973a638671645c483826421d356a646
3
+ metadata.gz: e8bf5f0a02fc9313a11685d720f9297b052d844abef0355127572f5757b59ebd
4
+ data.tar.gz: ac89c66ae2ec40b36aa26571f34a8b75f829196a313b8da6be7a0e9aa5581e26
5
5
  SHA512:
6
- metadata.gz: b530e18205cc7b4b349c7d54d436de7ac9cd7fbc9b53c1f0a6da5b374746a6557cc9c21854a736e92f22e60948375845cd2eaa124d696d261a5e6d166681f8ee
7
- data.tar.gz: c8175a01f4b8c0449556df367d421e0cd8eebe4f27b95748a8d13a77acf3606859e6bf7e1aed5e90a8a40b30b0ba3628e347eaf09206784181efa1b166ec510d
6
+ metadata.gz: 6ffcd2c213e94af2852c05a023a5455f7fe35d61d1beb7736595dc56e37e320a1f614bfbf65e632b40cb60c68598d301298c852b03f51e3d62a9a2f2a9220a9a
7
+ data.tar.gz: 65ab898b39555c5fcb272b4b9f09d4af8de4a6af14feb3b459dd0480f370d0220bc5e00fa9efc0bc649cdfa4feb996f035d57653dd7f2252214bf47c7eb70206
@@ -35,12 +35,14 @@ module Effective
35
35
  end
36
36
 
37
37
  def build_existing_attachments
38
- return ''.html_safe unless multiple?
39
-
40
- attachments = object.send(name)
38
+ attachments = Array(object.send(name))
41
39
 
42
40
  attachments.map.with_index do |attachment, index|
43
- @builder.hidden_field(name, multiple: true, id: (tag_id + "_#{index}"), value: attachment.signed_id)
41
+ if multiple?
42
+ @builder.hidden_field(name, multiple: true, id: (tag_id + "_#{index}"), value: attachment.signed_id)
43
+ else
44
+ @builder.hidden_field(name, id: tag_id, value: attachment.signed_id)
45
+ end
44
46
  end.join.html_safe
45
47
  end
46
48
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.10.16'.freeze
2
+ VERSION = '0.10.17'.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.10.16
4
+ version: 0.10.17
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: 2022-08-11 00:00:00.000000000 Z
11
+ date: 2022-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails