You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use both active admin and redcloth. Redcloth maps t helper to textlize and that breaks active admin views which expect t to mean translate . Is there a way to opt out of Redcloth's monkey patch for Erb::Util ?
We had the following Monkey Patch that worked in ruby 2.2.4 but stops working in 2.3.6 with the error uninitialized constant I18n::Config::Backend (NameError) [ probably due to some change in the sequence in which things are getting loaded in 2.3.6 ]
@letronje : I started working on this as I run into a similar issue that you reported here.
Long term, I want to deprecate the t alias all together.
If a t method is really important maybe RedCloth.t I'd be ok with.
We were discussing having a configuration that will allow you to indicate you still want the old behavior, but not sure if that will be useful to anybody.
So I will start a 5.x version without the alias by default, and if needed I can try to maintain both 4.x and 5.x.
We use both active admin and redcloth. Redcloth maps
t
helper totextlize
and that breaks active admin views which expectt
to meantranslate
. Is there a way to opt out of Redcloth's monkey patch for Erb::Util ?redcloth/lib/redcloth/erb_extension.rb
Lines 16 to 24 in f1c3076
redcloth/lib/redcloth.rb
Lines 40 to 45 in f1c3076
We had the following Monkey Patch that worked in ruby 2.2.4 but stops working in 2.3.6 with the error
uninitialized constant I18n::Config::Backend (NameError)
[ probably due to some change in the sequence in which things are getting loaded in 2.3.6 ]The text was updated successfully, but these errors were encountered: