This project is archived and is in readonly mode.
Add feature, turning off autoloading helpers
Reported by Ho-Sheng Hsiao | June 1st, 2010 @ 11:07 PM
This is a ticket opened to request a Rails 2 behavior described in #3945.
The configuration should have the following settings:
- (Default) Rails 3 behavior: all helpers defined in
/app/helpers/ are loaded into every single controller, in an
arbitrary order
- Rails 2 behavior: only helper module associated with the
controller is autoloaded
- None: do not autoload any helpers
My proposal is:
# Rails 3 behavior
# No change
# Rails 2 behavior
self.autoload_only_controller_helpers = true
# No helper autoload, period
self.autoload_helpers = false
Let me know if anyone else finds this acceptable and we can get someone to submit this as a patch.
Comments and changes to this ticket
-
Ho-Sheng Hsiao June 1st, 2010 @ 11:10 PM
- Tag changed from rails 3.0.0.beta3 to rails 3.0.0.beta3, actioncontroller, helpers
-
Nathan Colgate July 22nd, 2010 @ 08:01 PM
- Tag changed from rails 3.0.0.beta3, actioncontroller, helpers to rails 3.0.0.beta3, rails 3.0.0.beta4, actioncontroller, helpers
After struggling through the proposed solution in #3945 (http://gist.github.com/486356) and getting nowhere, I would certainly appreciate the above implementation.
-
Jeremy Kemper August 26th, 2010 @ 04:38 AM
- State changed from new to duplicate
- Importance changed from to Low
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Referenced by
- 3945 helper :all on by default I have added #4750 with a proposal for the configuration ...
- 5348 Visibility of helpers seems all wrong #3945 #4750
- 5348 Visibility of helpers seems all wrong Would you consider accepting something along the lines of...