This project is archived and is in readonly mode.

#4750 ✓duplicate
Ho-Sheng Hsiao

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:

  1. (Default) Rails 3 behavior: all helpers defined in /app/helpers/ are loaded into every single controller, in an arbitrary order
  2. Rails 2 behavior: only helper module associated with the controller is autoloaded
  3. 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

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>

Referenced by

Pages