Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for cascading mailer path being added to template path when using… #2243

Merged
merged 1 commit into from
Jul 24, 2021

Conversation

maysam
Copy link

@maysam maysam commented Jul 24, 2021

… partials in email templates

As per #2231, when using multiple partials within an email template, the mailer name keeps getting added to the file path for each subsequent partial in the same template, resulting in an Errno::ENOENT: No such file or directory @ rb_sysopen error.

Added a check to settings.view in the render routine to see if the mailer path was already in the string before adding it.

… partials in email templates

As per padrino#2231, when using multiple partials within an email template, the mailer name keeps getting added to the file path for each subsequent partial in the same template, resulting in an `Errno::ENOENT: No such file or directory @ rb_sysopen` error.

Added a check to `settings.view` in the render routine to see if the mailer path was already in the string before adding it.
@nesquena
Copy link
Member

Thanks!

@nesquena nesquena merged commit cd8f9a2 into padrino:master Jul 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants