diff --git a/lib/site_setting_extension.rb b/lib/site_setting_extension.rb index e6c501d9c77..c8fc3288155 100644 --- a/lib/site_setting_extension.rb +++ b/lib/site_setting_extension.rb @@ -457,17 +457,17 @@ module SiteSettingExtension def setup_deprecated_methods DEPRECATED_SETTINGS.each do |old_setting, new_setting, version| define_singleton_method old_setting do - logger.warn("`SiteSetting##{name}` has been deprecated and will be removed in the #{version} Release. Please use `SiteSetting##{new_setting}` instead") + logger.warn("`SiteSetting.#{old_setting}` has been deprecated and will be removed in the #{version} Release. Please use `SiteSetting.#{new_setting}` instead") self.public_send new_setting end define_singleton_method "#{old_setting}?" do - logger.warn("`SiteSetting##{name}?` has been deprecated and will be removed in the #{version} Release. Please use `SiteSetting##{new_setting}?` instead") + logger.warn("`SiteSetting.#{old_setting}?` has been deprecated and will be removed in the #{version} Release. Please use `SiteSetting.#{new_setting}?` instead") self.public_send "#{new_setting}?" end define_singleton_method "#{old_setting}=" do |val| - logger.warn("`SiteSetting##{name}=` has been deprecated and will be removed in the #{version} Release. Please use `SiteSetting##{new_setting}=` instead") + logger.warn("`SiteSetting.#{old_setting}=` has been deprecated and will be removed in the #{version} Release. Please use `SiteSetting.#{new_setting}=` instead") self.public_send "#{new_setting}=", val end end