about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-04-04 12:01:52 +0200
committerGitHub <noreply@github.com>2023-04-04 12:01:52 +0200
commitaf01ab7efebab356e73b498afe4258ae7515cc6a (patch)
tree798f5cde568987b7641543eb3972f355bae9170b /config/initializers
parent8192b0da7cd1fac38a68eab6746fc7ec74328a77 (diff)
parentd29cf8a044f6c0d004649223e018d240983e8437 (diff)
Merge pull request #2159 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/chewy.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/chewy.rb b/config/initializers/chewy.rb
index 2a91efefc..daf4a5f32 100644
--- a/config/initializers/chewy.rb
+++ b/config/initializers/chewy.rb
@@ -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