comparison config/initializers/filter_parameter_logging.rb @ 254:89f6c0016bab default tip

Update to latest rails
author nanaya <me@nanaya.net>
date Tue, 03 Sep 2024 19:21:25 +0900
parents 2335107f35d0
children
comparison
equal deleted inserted replaced
253:d726e8b92dd1 254:89f6c0016bab
1 # Be sure to restart your server when you modify this file. 1 # Be sure to restart your server when you modify this file.
2 2
3 # Configure sensitive parameters which will be filtered from the log file. 3 # Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file.
4 # Use this to limit dissemination of sensitive information.
5 # See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.
4 Rails.application.config.filter_parameters += [ 6 Rails.application.config.filter_parameters += [
5 :passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn 7 :passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
6 ] 8 ]