Skip to content

Commit f35ca9c

Browse files
committed
dont try to generate blob.signed_url when attachment is not saved
1 parent d8e0809 commit f35ca9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rails_admin/config/fields/types/active_storage.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def resource_url(thumb = false)
6161

6262
def value
6363
attachment = super
64-
attachment if attachment&.attached?
64+
attachment if !attachment&.new_record? && attachment&.attached?
6565
end
6666
end
6767
end

0 commit comments

Comments
 (0)