markets / maily

📫 Rails Engine to preview emails in the browser
https://rubygems.org/gems/maily
MIT License
707 stars 31 forks source link

Maily Hooks don't accept `kwargs` #58

Open stefanomarch opened 3 weeks ago

stefanomarch commented 3 weeks ago

Allow Hooks to receive keyword arguments. Currently it seems to fail ❌

markets commented 3 weeks ago

Thanks for reporting @stefanomarch! Please feel free to explore a solution 🤝

All the relevant code of handling arguments is here:

https://github.com/markets/maily/blob/a68c23139055516480758448b5eeaae5e0a0ad50/lib/maily/email.rb#L46-L102