nixpkgs/pkgs/servers/web-apps/discourse/nixos_defaults.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
397 B
Diff
Raw Normal View History

2021-03-12 11:58:31 +00:00
diff --git a/app/models/site_setting.rb b/app/models/site_setting.rb
2022-03-23 17:58:32 +00:00
index a6641f967a..a45353504a 100644
2021-03-12 11:58:31 +00:00
--- a/app/models/site_setting.rb
+++ b/app/models/site_setting.rb
2022-03-23 17:58:32 +00:00
@@ -21,6 +21,8 @@ class SiteSetting < ActiveRecord::Base
2021-03-12 11:58:31 +00:00
end
end
+ load_settings(File.join(Rails.root, 'config', 'nixos_site_settings.json'))
+
setup_deprecated_methods
client_settings << :available_locales