mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: use Sets for setting lists. (#29584)
This makes membership checks more efficient
This commit is contained in:
@@ -96,7 +96,7 @@ module SiteSettingExtension
|
||||
end
|
||||
|
||||
def shadowed_settings
|
||||
@shadowed_settings ||= []
|
||||
@shadowed_settings ||= Set.new
|
||||
end
|
||||
|
||||
def requires_confirmation_settings
|
||||
@@ -124,7 +124,7 @@ module SiteSettingExtension
|
||||
end
|
||||
|
||||
def secret_settings
|
||||
@secret_settings ||= []
|
||||
@secret_settings ||= Set.new
|
||||
end
|
||||
|
||||
def plugins
|
||||
|
||||
Reference in New Issue
Block a user