mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 06:48:47 +08:00
Only refresh site settings once on initialization.
This commit is contained in:
@ -27,11 +27,6 @@ class SiteSetting < ActiveRecord::Base
|
||||
end
|
||||
end
|
||||
|
||||
# `current` hash is not populated everytime when load a site setting
|
||||
# in order to support locale default. Instead, we simply `refresh!` once.
|
||||
# This should only affects the spec in which you should populate `current`
|
||||
refresh!
|
||||
|
||||
client_settings << :available_locales
|
||||
|
||||
def self.available_locales
|
||||
|
Reference in New Issue
Block a user