hide protected keys from config
This commit is contained in:
parent
90f60595e6
commit
429e111db4
2 changed files with 4 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ class FoodsoftConfig
|
|||
# @return [Boolean] Whether this key may be set in the database
|
||||
def allowed_key?(key)
|
||||
# fast check for keys without nesting
|
||||
return !self.config[:protected].keys.include?(key)
|
||||
return !self.config[:protected].keys.include?(key.to_s)
|
||||
# @todo allow to check nested keys as well
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue