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
Account for namespaced mailers #8
Comments
A patch would be wonderful, thanks! What errors/failures are you getting from your tests? |
I get the following error for all 6 tests.
If I comment out that method, then 5/6 tests pass. The failing test is
|
Damn. Using the _layout method of ActionView isn't very smart of me. It's liable to break without notice, which I think it does in Rails 5. See Rails commit face604. We might need to do some tests on that method before knowing how to call it reliably. I don't believe that problem is related to your pull request but thanks for finding it :) I'll keep this issue open until we fix that failing test for you in Rails 5. |
Justin. Would you like to take a look at the rails5 branch? I think the tests should pass for you there. If they do, I'll fix it on master and close this issue. |
@billhorsman, sorry for the delayed response. That fix did the trick for Rails 5. 👍 |
This is because we’ve fixed issue #8.
I've just released version |
We ran into a small issue running this with a mounted engine in our Rails app. The
template_path
wasn't accounting for the namespace.My forked version patches this by splitting the template at the "views" string, then keeps the rest of the path.
I will submit a Pull Request with the patch, please let me know if anything else is needed. I also noticed that all the tests were failing locally for me (prior to the patch). Is there something else needed to get them to pass...I see they passed their latest build on Travis.
Thanks for the gem! This gem really brightens up the sad state of HTML emails!
The text was updated successfully, but these errors were encountered: