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

Generating a new email should detect if the word "Email" is included #73

Closed
jwoertink opened this issue Aug 29, 2022 · 0 comments · Fixed by #74
Closed

Generating a new email should detect if the word "Email" is included #73

jwoertink opened this issue Aug 29, 2022 · 0 comments · Fixed by #74

Comments

@jwoertink
Copy link
Member

"#{filename}_email.cr"
end
private def email_class_template_path
"src/emails/#{email_class_template_filename}"
end
private def email_class_template_file(file)
"src/emails/templates/#{filename}_email/#{file}.ecr"

It assumes you're generating an email like WelcomeUser which it will name WelcomeUserEmail. But if you generate WelcomeUserEmail, it'll name it WelcomeUserEmailEmail... we should not do that 😂

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 a pull request may close this issue.

1 participant