1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 19:47:14 +00:00

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
This commit is contained in:
Marius Balteanu 2024-01-11 06:16:17 +00:00
parent 9f3ca1e753
commit 6b82aef321
2 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,6 @@ gem 'csv', '~> 3.2.6'
gem 'net-imap', '~> 0.3.4'
gem 'net-pop', '~> 0.1.2'
gem 'net-smtp', '~> 0.3.3'
gem 'rexml', require: false if Gem.ruby_version >= Gem::Version.new('3.0')
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]

View File

@ -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