mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 08:03:47 +08:00
12 lines
331 B
Ruby
12 lines
331 B
Ruby
|
module SiteSettingsHelpers
|
||
|
def new_settings(provider)
|
||
|
Class.new do
|
||
|
extend SiteSettingExtension
|
||
|
# we want to avoid leaking a big pile of MessageBus subscriptions here (1 per class)
|
||
|
# so we set listen_for_changes to false
|
||
|
self.listen_for_changes = false
|
||
|
self.provider = provider
|
||
|
end
|
||
|
end
|
||
|
end
|