A platform for community discussion. Free, open, simple.
DEV: Add Goldiloader behind a setting (#34006)
Loïc Guitaut1dc7295bba3c
diff --git a/Gemfile b/Gemfileindex 8ebfcfdb9e0..1f4e17fe162 100644--- a/Gemfile+++ b/Gemfile@@ -118,6 +118,8 @@ gem "net-imap", require: falsegem "net-pop", require: falsegem "digest", require: false+gem "goldiloader", require: false+group :test dogem "capybara", require: falsegem "webmock", require: falsediff --git a/Gemfile.lock b/Gemfile.lockindex 478ae0126db..c2dc5f8efd9 100644--- a/Gemfile.lock+++ b/Gemfile.lock@@ -185,6 +185,9 @@ GEMfspath (3.1.2)globalid (1.2.1)activesupport (>= 6.1)+ goldiloader (5.4.0)+ activerecord (>= 6.1, < 8.1)+ activesupport (>= 6.1, < 8.1)google-protobuf (4.31.1)bigdecimalrake (>= 13)@@ -769,6 +772,7 @@ DEPENDENCIESfaraday-retryfast_blankfastimage+ goldiloaderhasheryhighlinehtmlentities@@ -967,6 +971,7 @@ CHECKSUMSffi (1.17.2-x86_64-linux-musl) sha256=97c0eb3981414309285a64dc4d466bd149e981c279a56371ef811395d68cb95cfspath (3.1.2) sha256=b5ac9bafb97e2c8f8f9e303cd98ebd484be76fe9aa588bc4d01c6d99e78c9d75globalid (1.2.1) sha256=70bf76711871f843dbba72beb8613229a49429d1866828476f9c9d6ccc327ce9+ goldiloader (5.4.0) sha256=277a86ff424b963bc9d98d8f4d10bb7eea0eb010d3209893dea7092302350b73google-protobuf (4.31.1) sha256=022bc82931a0860a7f2ace41bd48e904c8e65032c1d5eefc33294b5edf9741f8google-protobuf (4.31.1-aarch64-linux-gnu) sha256=d5b8268b2e07776b15a73ed96ca416eab771821b162b239dbdbfb2c85e2d17e5google-protobuf (4.31.1-aarch64-linux-musl) sha256=fcd5b79ac4048e89e44c4c64fb432fa6400ec3c2f0344a7effa95fbc6895d24adiff --git a/config/initializers/000-goldiloader.rb b/config/initializers/000-goldiloader.rbnew file mode 100644index 00000000000..92fcc834488--- /dev/null+++ b/config/initializers/000-goldiloader.rb@@ -0,0 +1,3 @@+# frozen_string_literal: true++require "goldiloader" if GlobalSetting.try(:load_goldiloader)