Would core accept a patch that exposes helper methods (that don’t depend on 
ActionView state) via module_function?


The particular use case is that I have other objects that from time to time 
need access to a single helper method (like, say, #truncate). Including the 
entire TextHelper seems a bit heavy handed when all I need is access to a 
single method.


I would much rather do `ActionView::Helpers::TextHelper.truncate(…)` if it were 
possible.


Does this seem interesting / useful to anyone else?


Cheers,
-foca

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to