File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
activerecord/lib/active_record/middleware Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,14 @@ module Middleware
22
22
# To use the DatabaseSelector in your application with default settings add
23
23
# the following options to your environment config:
24
24
#
25
- # config.active_record.database_selector = { delay: 2.seconds }
26
- # config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
27
- # config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
25
+ # # This require is only necessary when using `rails new app --minimal`
26
+ # require "active_support/core_ext/integer/time"
27
+ #
28
+ # class Application < Rails::Application
29
+ # config.active_record.database_selector = { delay: 2.seconds }
30
+ # config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
31
+ # config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
32
+ # end
28
33
#
29
34
# New applications will include these lines commented out in the production.rb.
30
35
#
You can’t perform that action at this time.
0 commit comments