summaryrefslogtreecommitdiff
path: root/config/initializers_before_autoloader/oj.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers_before_autoloader/oj.rb')
-rw-r--r--config/initializers_before_autoloader/oj.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/initializers_before_autoloader/oj.rb b/config/initializers_before_autoloader/oj.rb
new file mode 100644
index 00000000000..3fa26259fc6
--- /dev/null
+++ b/config/initializers_before_autoloader/oj.rb
@@ -0,0 +1,4 @@
+# frozen_string_literal: true
+
+# Ensure Oj runs in json-gem compatibility mode by default
+Oj.default_options = { mode: :rails }