simple_form_extension 1.5.0 → 1.5.1
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: 9ac55dd92a52ae4038ec6f30a9985d7a44befe2e1a528d319fcb27cfd363c372
|
4
|
+
data.tar.gz: e0c2bf09011f4687d997a13b7f3a6ef52c8f0a4a73d12377f5699e5ebb2bb25b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e0417ce1ba2d281423d5543f5a096f43dea8d2e77c0b5ff088774933836026d55afa7e203e968129dfc7d61ac4c5243b220cbec7484d72c99d3062856b9d5ff
|
7
|
+
data.tar.gz: 0ddc21e6f8f3b78947410a53280179f9ce04758d2429333a801dea0a7a67ca56fbf7115dde1cc9e3c949fc8e96b206ee15c696bed495d1b84595866472c15425
|
@@ -14,7 +14,7 @@ module SimpleFormExtension
|
|
14
14
|
|
15
15
|
def file_preview_and_remove_button
|
16
16
|
content_tag(:div, class: 'btn-group') do
|
17
|
-
|
17
|
+
template.link_to(file_url, class: 'btn btn-default ', target: '_blank', data: { toggle: 'existing-file' }) do
|
18
18
|
content_tag(:i, '', class: 'fa fa-file') +
|
19
19
|
" ".html_safe +
|
20
20
|
|
@@ -55,7 +55,7 @@ module SimpleFormExtension
|
|
55
55
|
if paperclip_attachment_attached?
|
56
56
|
object.send(attribute_name)
|
57
57
|
elsif activestorage_attachment_attached?
|
58
|
-
|
58
|
+
template.polymorphic_url(object.send(attribute_name))
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_form_extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Glyph-fr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
- !ruby/object:Gem::Version
|
179
179
|
version: '0'
|
180
180
|
requirements: []
|
181
|
-
rubygems_version: 3.
|
181
|
+
rubygems_version: 3.4.8
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: This gems adds custom common input types to simple form.
|