override, version| … de fi ne_singleton_method old_setting do |warn: true| If warn Discourse.deprecate( `SiteSetting.#{old_setting}` has been deprecated. Please use `SiteSetting.#{new_setting}` instead. , drop_from: version ) end self.public_send(override ? new_setting : "_#{old_setting}") end … de fi ne_singleton_method
Discourse.deprecate( `SiteSetting.#{old_setting}` has been deprecated. Please use `SiteSetting.#{new_setting}` instead. , drop_from: version ) end self.public_send(override ? new_setting : "_#{old_setting}") end … Discourse.deprecate Rails.logger.warn lib/site_settings/deprecated_settings.rb