diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-01-11 06:16:17 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-01-11 06:16:17 +0000 |
commit | 6b82aef321638cf4730fc784f6e6dbfa8fb91511 (patch) | |
tree | 54331cef6ecaa7af3c6e8858b1dd282b7ff1b0f5 /config | |
parent | 9f3ca1e75360bb13e3d5cfc0f1ff17021bc8cac1 (diff) | |
download | redmine-6b82aef321638cf4730fc784f6e6dbfa8fb91511.tar.gz redmine-6b82aef321638cf4730fc784f6e6dbfa8fb91511.zip |
Switch default backend of ActiveSupport::XmlMini from rexml to Nokogiri (#37258).
git-svn-id: https://svn.redmine.org/redmine/trunk@22599 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/30-redmine.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/30-redmine.rb b/config/initializers/30-redmine.rb index fc36977f6..62969e4a6 100644 --- a/config/initializers/30-redmine.rb +++ b/config/initializers/30-redmine.rb @@ -8,6 +8,9 @@ Rails.application.config.to_prepare do # Forces I18n to load available locales from the backend I18n.config.available_locales = nil + # Use Nokogiri as XML backend instead of Rexml + ActiveSupport::XmlMini.backend = 'Nokogiri' + Redmine::Preparation.prepare end |