aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/filter_parameter_logging.rb
blob: b59f6df24490ffc2b385f1cb45fc50b4bce90580 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
module ActionController
  module FilterParameterLogging
    extend ActiveSupport::Concern

    module ClassMethods
      # This method has been moved to ActionDispatch::Http::ParametersFilter.filter_parameters
      def filter_parameter_logging(*filter_words, &block)
        ActiveSupport::Deprecation.warn("Setting filter_parameter_logging in ActionController is deprecated, please set 'config.filter_parameters' in application.rb or environments/[environment_name].rb instead.", caller)
        ActionDispatch::Http::ParametersFilter.filter_parameters(*filter_words, &block)
      end
    end
  end
end