mirror of https://github.com/rails/rails
Remove more references to white list
This commit is contained in:
parent
56ab961dee
commit
2c5c452d8c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue