diff options
author | José Valim <jose.valim@gmail.com> | 2010-04-10 11:47:20 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-04-10 11:47:20 +0200 |
commit | ece157e9504e192dcc065909c86316d520992221 (patch) | |
tree | 1650e1693a479d67168305c340d9d1989910bdbf /actionpack/lib/action_controller/deprecated | |
parent | 26e05efdb6c29430c5d282870b1e236dff8465c9 (diff) | |
download | rails-ece157e9504e192dcc065909c86316d520992221.tar.gz rails-ece157e9504e192dcc065909c86316d520992221.tar.bz2 rails-ece157e9504e192dcc065909c86316d520992221.zip |
Move verification to a plugin as well: http://github.com/rails/verification.git
Diffstat (limited to 'actionpack/lib/action_controller/deprecated')
-rw-r--r-- | actionpack/lib/action_controller/deprecated/base.rb | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/actionpack/lib/action_controller/deprecated/base.rb b/actionpack/lib/action_controller/deprecated/base.rb index 05551ffee4..5d9cfb153a 100644 --- a/actionpack/lib/action_controller/deprecated/base.rb +++ b/actionpack/lib/action_controller/deprecated/base.rb @@ -6,15 +6,6 @@ module ActionController deprecated_config_writer(option, message) end - # This method has been moved to ActionDispatch::Request.filter_parameters - def filter_parameter_logging(*args, &block) - ActiveSupport::Deprecation.warn("Setting filter_parameter_logging in ActionController is deprecated and has no longer effect, please set 'config.filter_parameters' in config/application.rb instead", caller) - filter = Rails.application.config.filter_parameters - filter.concat(args) - filter << block if block - filter - end - def deprecated_config_reader(option, message = nil) message ||= "Reading #{option} directly from ActionController::Base is deprecated. " \ "Please read it from config.#{option}" @@ -136,6 +127,25 @@ module ActionController end end + module DeprecatedBehavior + # This method has been moved to ActionDispatch::Request.filter_parameters + def filter_parameter_logging(*args, &block) + ActiveSupport::Deprecation.warn("Setting filter_parameter_logging in ActionController is deprecated and has no longer effect, please set 'config.filter_parameters' in config/application.rb instead", caller) + filter = Rails.application.config.filter_parameters + filter.concat(args) + filter << block if block + filter + end + + # This was moved to a plugin + def verify(*args) + ActiveSupport::Deprecation.warn "verify was removed from Rails and is now available as a plugin. " << + "Please install it with `rails plugin install git://github.com/rails/verification.git`.", caller + end + end + + extend DeprecatedBehavior + deprecated_config_writer :session_store deprecated_config_writer :session_options deprecated_config_accessor :relative_url_root, "relative_url_root is ineffective. Please stop using it" |