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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8641081b1ddc20d52bc0b4d8a1c0172ab6c0923f0ebd1c166e335d50796411d8
4
- data.tar.gz: 62d1fc74704027954f28dc1f962670966c1ccbb85a6440f19a28b797c479b805
3
+ metadata.gz: f0537914efac67cf9b88d78b687484938f146e5e0941fbace1a7d8fb507c115f
4
+ data.tar.gz: 15e9f8ebdf9b38aaf727154852f9ebf03d56447fc1d47dfa6fab9131557df4ee
5
5
  SHA512:
6
- metadata.gz: 0ec3407fec3fa1dcb18054ca58692ee6d3e276a7c8ed911ffa43d1146f3b6a93f6a796393b9201957b63c02d0f9630107f5e8ab6add53c6108b19928d2566bf4
7
- data.tar.gz: 2e1be9f862c67502c2dfddd004d4fceafdb9afbff3bb2e5ae7cbe29120d96e520c8cc79423408c8284713603aecedc96517b0ab9f38d91d00eb91fb2bbb55357
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.pre.3)
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
- attachment = ActiveStorage::Attachment.find(params[:signed_attachment_id])
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
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "1.18.0.pre.3"
2
+ VERSION = "1.18.0"
3
3
  end