Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move filter_parameter_logger to deprecated.rb

  • Loading branch information...
commit 5c8b4c6e231257bc08d32722e098927885e5e74d 1 parent 79d194e
@wycats wycats authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 actionpack/lib/action_controller/deprecated/base.rb
View
9 actionpack/lib/action_controller/deprecated/base.rb
@@ -6,6 +6,15 @@ def deprecated_config_accessor(option, message = nil)
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}"
Please sign in to comment.
Something went wrong with that request. Please try again.