Repository navigation
Conversation
…. Rails 5.1.2 Since Rails 5.1.2, the default headers in ActionMailer behave differently if they are Proc. It doesn't take any parameter.
|
I am getting this too, but I think there are a couple things that are not working with the proposed solution:
Do you want to update this PR or should I create a new one? |
|
You can create another PR, just wanted to point out the problem. Actually in other places I simply add a default parameter to the Proc (_=nil). But the question is how can we remember to remove this after some time? |
Not sure that's a major issue. According to the PR I opened on Rails, they may want to keep both 1 and 0 arg. |
|
In that case, isn't a default parameter good enough solution? |
It's good enough to use in your mailers, but Devise should work with more than just Rails 5.1, so to support both version you have to do this trickery. |
|
Hello @terryyin, thanks for your report. Thank you! |
|
Closing in favor of #4627 |
…. Rails 5.1.2
Since Rails 5.1.2, the default headers in ActionMailer behave differently if they are Proc. It doesn't take any parameter.