diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-11-18 00:06:03 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-11-18 00:20:57 +0100 |
commit | 250fb3f6c297e1f0bdc80a44ae6ac77c04cd9c85 (patch) | |
tree | 26501df142c4c458f64cec56d993f63c5863f997 /actionpack/lib/action_controller/metal/helpers.rb | |
parent | 4d35f8b6615d31fbed4806ee3c260e24447f435b (diff) | |
download | rails-250fb3f6c297e1f0bdc80a44ae6ac77c04cd9c85.tar.gz rails-250fb3f6c297e1f0bdc80a44ae6ac77c04cd9c85.tar.bz2 rails-250fb3f6c297e1f0bdc80a44ae6ac77c04cd9c85.zip |
Add config.action_controller.include_all_helpers, by default it is set to true.
In older rails versions there was a way to use only helpers from
helper file corresponding to current controller and you could also
include all helpers by saying 'helper :all' in controller. This config
allows to return to older behavior by setting it to false.
Diffstat (limited to 'actionpack/lib/action_controller/metal/helpers.rb')
-rw-r--r-- | actionpack/lib/action_controller/metal/helpers.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/helpers.rb b/actionpack/lib/action_controller/metal/helpers.rb index d14831b763..91a88ab68a 100644 --- a/actionpack/lib/action_controller/metal/helpers.rb +++ b/actionpack/lib/action_controller/metal/helpers.rb @@ -53,8 +53,9 @@ module ActionController include AbstractController::Helpers included do - config_accessor :helpers_path + config_accessor :helpers_path, :include_all_helpers self.helpers_path ||= [] + self.include_all_helpers = true end module ClassMethods |