1
0
Fork 0
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:
John Hawthorn 2019-02-07 15:39:31 -08:00
parent 3302d2c2e6
commit 4295aaf758

View file

@ -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*