curly icon indicating copy to clipboard operation
curly copied to clipboard

Fix ArgumentError when using rails i18n `t` helper

Open prognostikos opened this issue 2 years ago • 1 comments

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.

prognostikos avatar Dec 14 '22 10:12 prognostikos