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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8bf5f0a02fc9313a11685d720f9297b052d844abef0355127572f5757b59ebd
|
4
|
+
data.tar.gz: ac89c66ae2ec40b36aa26571f34a8b75f829196a313b8da6be7a0e9aa5581e26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
39
|
-
|
40
|
-
attachments = object.send(name)
|
38
|
+
attachments = Array(object.send(name))
|
41
39
|
|
42
40
|
attachments.map.with_index do |attachment, index|
|
43
|
-
|
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
|
|
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.
|
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
|
+
date: 2022-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|