The following helpers apply beyond ActionView, and should be moved to ActiveSupprt - potentially as instance methods patches on the respective classes.
@yfeldblum Is this still an issue?
Yes, this is a feature request that
These modules & methods have everything to do with formatting numbers and datetimes as strings, which is the province of ActiveSupport, and nothing to do with locating and rendering templates, which is the province of ActionView.
These modules & methods are useful outside of ActionView templates, such as in model, job, service, validator, & controller classes.
Do you think you could create a patch? If not, do you know where the code for this would be?
I've written a patch for NumberHelper and submitted a pull request:
If you are also interested in the same for DateHelper, I can do that as well.
Mentioning #6315 explicitly so GitHub links the two.
Closing this in favor of #6315. We are already having discussion over there.
So, the number helpers were moved. I'd +1 to also move the date helpers. wdyt?
@amutz did you get anywhere with doing the same for DateHelper as you did in #6315 for NumberHelper? Best I can tell it still exists in ActionView