We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8e0809 commit f35ca9cCopy full SHA for f35ca9c
1 file changed
lib/rails_admin/config/fields/types/active_storage.rb
@@ -61,7 +61,7 @@ def resource_url(thumb = false)
61
62
def value
63
attachment = super
64
- attachment if attachment&.attached?
+ attachment if !attachment&.new_record? && attachment&.attached?
65
end
66
67
0 commit comments