diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-25 23:38:47 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-25 23:38:47 +0100 |
commit | 49be3316c21ae1b779fc26a5eb51890deff56915 (patch) | |
tree | 9a51ec862ac69b30473f7990d3ab2c23afac3c4b /actionpack/lib/action_controller | |
parent | cc1bb8590e6021e0c86b345857358704fa68c9eb (diff) | |
download | rails-49be3316c21ae1b779fc26a5eb51890deff56915.tar.gz rails-49be3316c21ae1b779fc26a5eb51890deff56915.tar.bz2 rails-49be3316c21ae1b779fc26a5eb51890deff56915.zip |
Add a deprecation for helpers_dir.
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal/helpers.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/helpers.rb b/actionpack/lib/action_controller/metal/helpers.rb index 0e3db86861..ef3b89db14 100644 --- a/actionpack/lib/action_controller/metal/helpers.rb +++ b/actionpack/lib/action_controller/metal/helpers.rb @@ -56,6 +56,18 @@ module ActionController end module ClassMethods + def helpers_dir + ActiveSupport::Deprecation.warn "ActionController::Base.helpers_dir is deprecated. " << + "Please use ActionController::Base.helpers_path (which returns an array)" + self.helpers_path + end + + def helpers_dir=(value) + ActiveSupport::Deprecation.warn "ActionController::Base.helpers_dir= is deprecated. " << + "Please use ActionController::Base.helpers_path= (which is an array)" + self.helpers_path = Array(value) + end + def inherited(klass) klass.class_eval { default_helper_module! unless name.blank? } super |