Initializer not loading?
RAILS_ENV=production bin/about sh: svn: not found sh: darcs: not found sh: hg: not found sh: cvs: not found sh: bzr: not found Environment: Redmine version 3.4.11.stable Ruby version 2.5.5-p157 (2019-03-15) [amd64-freebsd12] Rails version 184.108.40.206 Environment production Database adapter PostgreSQL SCM: Git 2.22.0 Filesystem Redmine plugins: no plugin installed
Redline is installed using the FreeBSD pkg manager. This was a conversion and upgrade to an existing redmine installation formerly running on CentOS-6. After the upgrade we discovered that many of the html tags used in our wiki pages and issues no longer took effect. In researching this we discovered that the RedCloth3 class variable ALLOWED_TAGS had to be altered to permit tags like
</br>, and so forth. Rather than modifying
./redmine/lib/redmine/wiki_formatting/textile/redcloth3.rb we added an initializer in
# config/initializers/40-redmine-redcloth-add-html-tags.rb # Be sure to restart the httpd server after modifying this file. RedCloth3::ALLOWED_TAGS << %w(br em strong)
But this initializer does not take effect when the httpd service is restarted. Modifying the code in redcloth3.rb does add the desired tags to the allowed list. It has been five years since I coded anything in rails and so I have likely done something wrong. However, there is nothing in the production log or in the Apache error log to indicate any error.
My question is simply what have I done wrong so that the local additional allowed tags are not loading via the initializer?