Skip to content

Commit dade321

Browse files
committed
And, as always, RuboCop
1 parent 27c7aaa commit dade321

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

demo/config/environments/production.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
# config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
3535

3636
# Log to STDOUT with the current request id as a default log tag.
37-
config.log_tags = [ :request_id ]
38-
config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
37+
config.log_tags = [:request_id]
38+
config.logger = ActiveSupport::TaggedLogging.logger($stdout)
3939

4040
# Change to "debug" to log everything (including potentially personally-identifiable information!)
4141
config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
@@ -76,7 +76,7 @@
7676
config.active_record.dump_schema_after_migration = false
7777

7878
# Only use :id for inspections in production.
79-
config.active_record.attributes_for_inspect = [ :id ]
79+
config.active_record.attributes_for_inspect = [:id]
8080

8181
# Enable DNS rebinding protection and other `Host` header attacks.
8282
# config.hosts = [

demo/config/initializers/filter_parameter_logging.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
# Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file.
44
# Use this to limit dissemination of sensitive information.
55
# See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.
6-
Rails.application.config.filter_parameters += [
7-
:passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, :cvv, :cvc
6+
Rails.application.config.filter_parameters += %i[
7+
passw email secret token _key crypt salt certificate otp ssn cvv cvc
88
]

0 commit comments

Comments
 (0)