Skip to content

Commit efecd8a

Browse files
committed
Opiniated formatting
1 parent 556a9f7 commit efecd8a

File tree

2 files changed

+3
-24
lines changed

2 files changed

+3
-24
lines changed

config/environments/production.rb

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -72,35 +72,14 @@
7272
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
7373

7474
if ENV['RAILS_LOG_TO_STDOUT'].present?
75-
logger = ActiveSupport::Logger.new($stdout)
75+
logger = ActiveSupport::Logger.new($stdout)
7676
logger.formatter = config.log_formatter
77-
config.logger = ActiveSupport::TaggedLogging.new(logger)
77+
config.logger = ActiveSupport::TaggedLogging.new(logger)
7878
end
7979

8080
# Do not dump schema after migrations.
8181
config.active_record.dump_schema_after_migration = false
8282

83-
# Inserts middleware to perform automatic connection switching.
84-
# The `database_selector` hash is used to pass options to the DatabaseSelector
85-
# middleware. The `delay` is used to determine how long to wait after a write
86-
# to send a subsequent read to the primary.
87-
#
88-
# The `database_resolver` class is used by the middleware to determine which
89-
# database is appropriate to use based on the time delay.
90-
#
91-
# The `database_resolver_context` class is used by the middleware to set
92-
# timestamps for the last write to the primary. The resolver uses the context
93-
# class timestamps to determine how long to wait before reading from the
94-
# replica.
95-
#
96-
# By default Rails will store a last write timestamp in the session. The
97-
# DatabaseSelector middleware is designed as such you can define your own
98-
# strategy for connection switching and pass that into the middleware through
99-
# these configuration options.
100-
# config.active_record.database_selector = { delay: 2.seconds }
101-
# config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
102-
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
103-
10483
config.token_hash_rounds = 10
10584

10685
config.transcode_cache_expiry = -> { 3.days.ago }

config/environments/test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323

2424
# Show full error reports and disable caching.
25-
config.consider_all_requests_local = true
25+
config.consider_all_requests_local = true
2626
config.action_controller.perform_caching = false
2727
config.cache_store = :null_store
2828

0 commit comments

Comments
 (0)