Move comment to the right place.

This commit is contained in:
Guo Xiang Tan
2016-06-29 15:23:29 +08:00
parent 8db3ab5f2a
commit 918b015bdb
2 changed files with 13 additions and 12 deletions

View File

@ -117,9 +117,6 @@ module SiteSettingExtension
hidden_settings << name
end
# You can "shadow" a site setting with a GlobalSetting. If the GlobalSetting
# exists it will be used instead of the setting and the setting will be hidden.
# Useful for things like API keys on multisite.
if opts[:shadowed_by_global] && GlobalSetting.respond_to?(name)
val = GlobalSetting.send(name)
unless val.nil? || (val == ''.freeze)