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: 38aa08ea4a8cf92f6fc0cc37e25626842ae034d35244b917f6043d3da61ec28f
4
- data.tar.gz: 695288388ad82f16580b7bfd1bf04590e20d070fb82d1595e5c23ad732a7331a
3
+ metadata.gz: 9ac55dd92a52ae4038ec6f30a9985d7a44befe2e1a528d319fcb27cfd363c372
4
+ data.tar.gz: e0c2bf09011f4687d997a13b7f3a6ef52c8f0a4a73d12377f5699e5ebb2bb25b
5
5
  SHA512:
6
- metadata.gz: c06e4eaa4ff32484bd0dea6e9fa5727dde895796d10a9a9996eb7cd8b18c953619ee16b0b2ff85250c6843353934ca3e4b57886ad49884d64d071f7a0f2b3aa6
7
- data.tar.gz: e6a67846e389e65734d7cff721f692db9ddd3601b298af8c0faa443ad90a1d4acc697870689ac87be9d1078f9fd65782681f3fa941de53ab948c94b4f42f9702
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
- content_tag(:a, class: 'btn btn-default ', href: file_url, target: '_blank', data: { toggle: 'existing-file' }) do
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
- object.send(attribute_name).try(:service_url) || object.send(attribute_name).try(:url)
58
+ template.polymorphic_url(object.send(attribute_name))
59
59
  end
60
60
  end
61
61
 
@@ -1,3 +1,3 @@
1
1
  module SimpleFormExtension
2
- VERSION = '1.5.0'
2
+ VERSION = '1.5.1'
3
3
  end
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.0
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-01-05 00:00:00.000000000 Z
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.3.7
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.