Skip to content

Reorder arguments if block given and no encoding needed#21

Open
mirko314 wants to merge 1 commit intoreed:masterfrom
mirko314:feature/fix-vanilla-mail-to
Open

Reorder arguments if block given and no encoding needed#21
mirko314 wants to merge 1 commit intoreed:masterfrom
mirko314:feature/fix-vanilla-mail-to

Conversation

@mirko314
Copy link
Copy Markdown

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.

@cgunther
Copy link
Copy Markdown

I just hit this as well and can confirm the fix resolves the issue for me.

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