Call ActiveStorage::Filename.to_s

This commit is contained in:
Paul Chavard 2019-08-28 10:42:02 +02:00
parent 64dccbab5c
commit 0ecf5b47eb

View file

@ -10,7 +10,7 @@ class ApplicationMailer < ActionMailer::Base
begin
if procedure.logo_active_storage.attached?
logo_filename = procedure.logo_active_storage.filename
logo_filename = procedure.logo_active_storage.filename.to_s
attachments.inline[logo_filename] = procedure.logo_active_storage.download
else
logo_filename = procedure.logo.filename