avo 1.18.0.pre.3 → 1.18.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of avo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -3
- data/app/components/avo/fields/common/multiple_file_viewer_component.html.erb +0 -2
- data/app/controllers/avo/attachments_controller.rb +2 -1
- data/lib/avo/version.rb +1 -1
- data/public/avo-packs/css/application-f9191617.css.map +1 -1
- data/public/avo-packs/css/application-f9191617.css.map.br +0 -0
- data/public/avo-packs/css/application-f9191617.css.map.gz +0 -0
- data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.map +1 -1
- data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.map.br +0 -0
- data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.map.gz +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0537914efac67cf9b88d78b687484938f146e5e0941fbace1a7d8fb507c115f
|
4
|
+
data.tar.gz: 15e9f8ebdf9b38aaf727154852f9ebf03d56447fc1d47dfa6fab9131557df4ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d862bdd263cc44b4e0832e2aeb8bbd3a086a8dd7f8eb9d730401bf5fe809aec7aef021fd449fe7251f75c79648a62c3454c6554bf01948db58f03e974c4a165
|
7
|
+
data.tar.gz: ba4787b27586038cfce9d08f7bac3e9143a81c38f978b2c5aa32a48d32bbcf0aee9383e87154f24f243dab74b959a5d33cbc435115a8e39e4660879a69048945
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
avo (1.18.0
|
4
|
+
avo (1.18.0)
|
5
5
|
active_link_to
|
6
6
|
addressable
|
7
7
|
breadcrumbs_on_rails
|
@@ -209,8 +209,6 @@ GEM
|
|
209
209
|
nokogiri (1.12.5)
|
210
210
|
mini_portile2 (~> 2.6.1)
|
211
211
|
racc (~> 1.4)
|
212
|
-
nokogiri (1.12.5-x86_64-linux)
|
213
|
-
racc (~> 1.4)
|
214
212
|
orm_adapter (0.5.0)
|
215
213
|
pagy (5.6.10)
|
216
214
|
parallel (1.20.1)
|
@@ -1,6 +1,4 @@
|
|
1
1
|
<div class="relative min-h-full max-w-full flex-1 flex flex-col justify-between space-y-3">
|
2
|
-
<%= @file.inspect %>
|
3
|
-
<%= @id.inspect %>
|
4
2
|
<% if @file.present? %>
|
5
3
|
<% if @file.representable? && @is_image %>
|
6
4
|
<%= image_tag helpers.main_app.url_for(@file), class: 'rounded-lg max-h-168 max-w-full' %>
|
@@ -21,7 +21,8 @@ module Avo
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def destroy
|
24
|
-
|
24
|
+
blob = ActiveStorage::Blob.find(params[:signed_attachment_id])
|
25
|
+
attachment = blob.attachments.find_by record_id: params[:id], record_type: @model.class.to_s
|
25
26
|
|
26
27
|
if attachment.present?
|
27
28
|
attachment.destroy
|
data/lib/avo/version.rb
CHANGED