0
0
Fork 0

Change root Chewy strategy to emit a warning instead of erroring out in production mode (#24327)

This commit is contained in:
Claire 2023-04-03 15:05:39 +02:00 committed by GitHub
parent 4909c2e718
commit 5c499f54e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View file

@ -19,6 +19,7 @@ Chewy.settings = {
# cycle, which takes care of checking if Elasticsearch is enabled
# or not. However, mind that for the Rails console, the :urgent
# strategy is set automatically with no way to override it.
Chewy.root_strategy = :bypass_with_warning if Rails.env.production?
Chewy.request_strategy = :mastodon
Chewy.use_after_commit_callbacks = false