2019-04-29 20:27:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-01-15 21:25:42 -05:00
|
|
|
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
|