Skip to content

Commit 5fa0d08

Browse files
committed
Ensure that image tags are generated with the correct url according to the active storage proxy config
1 parent 423faa6 commit 5fa0d08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/helpers/better_together/image_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ def render_image_gallery(images, venue_name)
8484
if images.size == 1
8585
# Render a single image
8686
content_tag(:div, class: 'col col-12') do
87-
image_tag(images.first.url, alt: venue_name, class: 'img-fluid rounded mb-3')
87+
image_tag(images.first.media, alt: venue_name, class: 'img-fluid rounded mb-3')
8888
end
8989
else
9090
# Render a gallery for multiple images
9191
images.map.with_index do |image, _index|
9292
content_tag(:div, class: 'col align-content-center col-md-4') do
93-
image_tag(image.url, alt: venue_name, class: 'img-fluid rounded')
93+
image_tag(image.media, alt: venue_name, class: 'img-fluid rounded')
9494
end
9595
end.join.html_safe
9696
end

0 commit comments

Comments
 (0)