curly
curly copied to clipboard
Fix ArgumentError when using rails i18n `t` helper
Before this fix calls in presenters to t()
that included interpolation variables would fail with the exception below on ruby 3.1.3p185
ActionView::Template::Error:
wrong number of arguments (given 2, expected 1)
In the process of upgrading our app from ruby 2.7.7 to 3.1.3 we ran into this issue. I'm not sure how backwards-compatible the fix is though.