Remove more references to white list

This commit is contained in:
Rafael Mendonça França 2020-06-09 13:47:12 -04:00
parent 56ab961dee
commit 2c5c452d8c
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
2 changed files with 2 additions and 2 deletions

View File

@ -983,7 +983,7 @@ module ActionController
# --- Filtering ----------------------------------------------------------
#
# This is a white list of permitted scalar types that includes the ones
# This is a list of permitted scalar types that includes the ones
# supported in XML and JSON requests.
#
# This list is in particular used to filter ordinary requests, String goes

View File

@ -2775,7 +2775,7 @@ NOTE: Defined in `active_support/core_ext/hash/keys.rb`.
#### `assert_valid_keys`
The method `assert_valid_keys` receives an arbitrary number of arguments, and checks whether the receiver has any key outside that white list. If it does `ArgumentError` is raised.
The method `assert_valid_keys` receives an arbitrary number of arguments, and checks whether the receiver has any key outside that list. If it does `ArgumentError` is raised.
```ruby
{a: 1}.assert_valid_keys(:a) # passes