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

Remove @email_view_module from Bamboo.Phoenix #559

Merged
merged 1 commit into from
Oct 30, 2020

Conversation

germsvel
Copy link
Collaborator

@germsvel germsvel commented Oct 29, 2020

What changed?

We remove the unnecessary setting of the view provided to Bamboo.Phoenix as @email_view_module. By setting it to a module attribute, we create a compile-time dependency, when we can simply pass it into the render_email function. It was originally set in this commit.

What changed?
============

We remove an unnecessary setting of the view being passed to
`Bamboo.Phoenix` as `@email_view_module`. By setting it to a module
attribute, we create a compile time dependency, when we can simply pass
it into the `render_email` function.
Copy link
Contributor

@brian-penguin brian-penguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@germsvel germsvel merged commit 8c57803 into master Oct 30, 2020
@germsvel germsvel deleted the gv-remove-unneeded-module-attribute branch October 30, 2020 21:29
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.

2 participants