fix for img PDF

This commit is contained in:
Adrian Hinz 2022-03-29 18:53:41 +02:00
parent 50362ddcb8
commit 6e33ed8f0d
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
<div class="row">
<div class="col-md-12">
<%= image_tag expert.avatar, height: 150 %>
<% unless expert.avatar.blank? %>
<%= image_tag rails_blob_url(expert.avatar, disposition: "attachment"), height: 150 %>
<% end %>
</div>
</div>
<div class="row">

View File

@ -4,7 +4,7 @@
<td>
<div class="row">
<div class="col-md-12">
<%= image_tag partner.logo, height: 40 %>
<%= image_tag rails_blob_url(partner.logo, disposition: "attachment"), height: 40 %>
</div>
</div>
<div class="row">