actionview-encoded_mail_to icon indicating copy to clipboard operation
actionview-encoded_mail_to copied to clipboard

Reorder arguments if block given and no encoding needed

Open mirko314 opened this issue 6 years ago • 1 comments

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.

mirko314 avatar Jan 10 '19 09:01 mirko314

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

cgunther avatar Feb 20 '20 20:02 cgunther