I don't have strong opinion about it but I fear this would give the wrong message to our users.
I don't think we should take in consideration the number of methods you are including when you include a helper module. It just doesn't matter in the most cases. Rafael Mendonça França http://twitter.com/rafaelfranca https://github.com/rafaelfranca On Fri, Sep 12, 2014 at 10:31 AM, Nicolás Sanguinetti < h...@nicolassanguinetti.info> wrote: > 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. > -- 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.