decent_exposure icon indicating copy to clipboard operation
decent_exposure copied to clipboard

Example mailer code in README doesn't work

Open obie opened this issue 8 years ago • 1 comments

With Rails 5.0.0.1 not supplying id option to expose results in Decent Exposure expecting to have a params object available, which of course doesn't exist in mailers.

Since DE is able to hook into the execution chain between the mailer class and instance action method being invoked, it should be possible to use naming conventions to pluck the needed parameters automatically without need for additional boilerplate assignments.

Sorry, I don't have time to dig into the issue and provide a patch right now. But would love to mention DE in my Action Mailer chapter in The Rails 5 Way if possible.

obie avatar Dec 27 '16 15:12 obie

Sorry, resources are booked so likely won't be able to get to it in time for your book, but should you find the time, PR's welcome :)

jsncmgs1 avatar Feb 01 '17 20:02 jsncmgs1