Are there any drawbacks to using helper :all in Rails
Posted
by Rob Jones
on Stack Overflow
See other posts from Stack Overflow
or by Rob Jones
Published on 2010-06-03T16:04:21Z
Indexed on
2010/06/03
16:04 UTC
Read the original article
Hit count: 351
In Rails 'helper :all' makes all your helpers 'available' to all your controllers.
This is concise and convenient, but does it have any memory and/or performance implications compared to explicitly calling the helpers that each controller actually needs?
It's unclear form the docs whether using it involves 'require'ing all those files, or whether autoload is being used. I can't tell from the source in the Rails framework docs.
thanks
© Stack Overflow or respective owner