allow access to the request method
I wanted to preview my templates with a different locale. To make this process easier I wanted to change the locale based on the locale param.
+1
Something like this would be useful for me as well, but as-is, a bunch of specs fail because to_param is undefined.
FWIW, here is an alternate implementation that accomplishes roughly the same, without using to_param. All specs pass, afaict.
https://github.com/Headlinerfm/mail_view/commit/8f5669aadacafab9bd648d1ac1f3cf21fb321f91
:+1:
👍 it's been a couple of years, I guess the code has settled down nicely no? :)
Honest question, what's up with this repo?
I think the latest version included in rails is already sufficient, at least it served my purpose :)