actionview-encoded_mail_to
actionview-encoded_mail_to copied to clipboard
Reorder arguments if block given and no encoding needed
If one tries to use the vanilla mail_to through the gem, the arguments will get messed up if used with a block. This is due to line 48 which is executed in the gem as well as in the super, messing up the order of arguments. We effectively need to reverse line 48 if we want to call the super, otherwise the html_options will not be passed to the super.
I just hit this as well and can confirm the fix resolves the issue for me.