diff options
author | Bobby McDonald <bobbymcwho@gmail.com> | 2019-10-18 00:13:46 -0400 |
---|---|---|
committer | Bobby McDonald <bobbymcwho@gmail.com> | 2019-10-25 20:27:26 -0400 |
commit | 3dfa27f1196851864a6c477400b3b70ffb5aff32 (patch) | |
tree | 40a3fb004fa5f61af1f501c46a49de0cb58e46dd /README.md | |
parent | 61209169b454ce11455091f087a61de61c48e28d (diff) | |
download | hashie-3dfa27f1196851864a6c477400b3b70ffb5aff32.tar.gz |
Remove references to blacklists and whitelists
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -532,7 +532,7 @@ class Response < Hashie::Mash end ``` -Disable warnings will honor the last `disable_warnings` call. Calling without parameters will override the blacklist, and calling with parameters will create a new blacklist. This includes child classes that inherit from a class that disables warnings. +Disable warnings will honor the last `disable_warnings` call. Calling without parameters will override the ignored methods list, and calling with parameters will create a new ignored methods list. This includes child classes that inherit from a class that disables warnings. ```ruby class Message < Hashie::Mash @@ -633,10 +633,10 @@ mash[1] #=> { name: 'John', lastname: 'Doe' } The `Mash#load` method calls `YAML.safe_load(path, [], [], true)`. -Specify `whitelist_symbols`, `whitelist_classes` and `aliases` options as needed. +Specify `permitted_symbols`, `permitted_classes` and `aliases` options as needed. ```ruby -Mash.load('data/user.csv', whitelist_classes: [Symbol], whitelist_symbols: [], aliases: false) +Mash.load('data/user.csv', permitted_classes: [Symbol], permitted_symbols: [], aliases: false) ``` ### Mash Extension: KeepOriginalKeys |