FIX: Reset watched site settings when default locale changes

Some site settings (e.g. `unicode_username_character_whitelist`) depend on the default locale, so we need to reset the watched settings when the locale changes.
This commit is contained in:
Gerhard Schlager 2019-10-01 20:41:03 +02:00
parent 4aefe589de
commit f82576deea
1 changed files with 1 additions and 0 deletions

View File

@ -112,6 +112,7 @@ class SiteSetting < ActiveRecord::Base
end
WATCHED_SETTINGS ||= [
:default_locale,
:attachment_content_type_blacklist,
:attachment_filename_blacklist,
:unicode_username_character_whitelist,