aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2010-04-04 21:06:39 -0700
committerwycats <wycats@gmail.com>2010-04-04 21:06:39 -0700
commit5c8b4c6e231257bc08d32722e098927885e5e74d (patch)
treebaa78847f8589eb5969fb6806a4b677041778776 /actionpack/lib
parent79d194e920a1b6e23cad9b6f3397da66b3938116 (diff)
downloadrails-5c8b4c6e231257bc08d32722e098927885e5e74d.tar.gz
rails-5c8b4c6e231257bc08d32722e098927885e5e74d.tar.bz2
rails-5c8b4c6e231257bc08d32722e098927885e5e74d.zip
Move filter_parameter_logger to deprecated.rb
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/deprecated/base.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/deprecated/base.rb b/actionpack/lib/action_controller/deprecated/base.rb
index 2fd60aacc7..51d1e23753 100644
--- a/actionpack/lib/action_controller/deprecated/base.rb
+++ b/actionpack/lib/action_controller/deprecated/base.rb
@@ -6,6 +6,15 @@ 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}"