Use dynamic list for allowed user preference params

This commit is contained in:
2024-05-23 00:23:42 +02:00
parent b541e95bb7
commit bad3b7a2be
3 changed files with 18 additions and 5 deletions

View File

@@ -26,4 +26,8 @@ class UserPreferences
end
hash.stringify_keys!.to_h
end
def self.pref_keys
DEFAULT_PREFS.keys.map(&:to_sym)
end
end