mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Update CHANGELOG for database_resolver_context
This commit is contained in:
parent
3302d2c2e6
commit
4295aaf758
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
|||
```
|
||||
config.active_record.database_selector = { delay: 2.seconds }
|
||||
config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
|
||||
config.active_record.database_operations = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
|
||||
config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
|
||||
```
|
||||
|
||||
To change the database selection strategy, pass a custom class to the
|
||||
|
@ -38,7 +38,7 @@
|
|||
```
|
||||
config.active_record.database_selector = { delay: 10.seconds }
|
||||
config.active_record.database_resolver = MyResolver
|
||||
config.active_record.database_operations = MyResolver::MyCookies
|
||||
config.active_record.database_resolver_context = MyResolver::MyCookies
|
||||
```
|
||||
|
||||
*Eileen M. Uchitelle*
|
||||
|
|
Loading…
Reference in a new issue