Skip to content

Commit

Permalink
DEV: Use a set in SiteSetting.settings_hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxworld committed Nov 22, 2018
1 parent 4752ddc commit 96168cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/site_setting_extension.rb
Expand Up @@ -177,7 +177,11 @@ def setting(name_arg, default = nil, opts = {})

def settings_hash
result = {}
deprecated_settings = SiteSettings::DeprecatedSettings::SETTINGS.map { |s| s[0] }
deprecated_settings = Set.new

SiteSettings::DeprecatedSettings::SETTINGS.each do |s|
deprecated_settings << s[0]
end

defaults.all.keys.each do |s|
result[s] =
Expand Down

0 comments on commit 96168cb

Please sign in to comment.