Call ActiveStorage::Filename.to_s
This commit is contained in:
parent
64dccbab5c
commit
0ecf5b47eb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue