Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #14804 from akshay-vishnoi/doc_changes

"subhash" --> "sub-hash"
  • Loading branch information...
commit d39a0d8b82c768e06e78b307786cb4bdda43f5e9 2 parents 92d92b0 + fe8a6ba
Arthur Nogueira Neves arthurnn authored
4 actionpack/lib/action_dispatch/http/filter_parameters.rb
View
@@ -6,8 +6,8 @@ module ActionDispatch
module Http
# Allows you to specify sensitive parameters which will be replaced from
# the request log by looking in the query string of the request and all
- # subhashes of the params hash to filter. If a block is given, each key and
- # value of the params hash and all subhashes is passed to it, the value
+ # sub-hashes of the params hash to filter. If a block is given, each key and
+ # value of the params hash and all sub-hashes is passed to it, the value
# or key can be replaced using String#replace or similar method.
#
# env["action_dispatch.parameter_filter"] = [:password]
2  activesupport/test/core_ext/hash_ext_test.rb
View
@@ -635,7 +635,7 @@ def test_to_options_on_indifferent_preserves_hash
assert_equal 1, h['first']
end
- def test_indifferent_subhashes
+ def test_indifferent_sub_hashes
h = {'user' => {'id' => 5}}.with_indifferent_access
['user', :user].each {|user| [:id, 'id'].each {|id| assert_equal 5, h[user][id], "h[#{user.inspect}][#{id.inspect}] should be 5"}}
2  guides/source/action_controller_overview.md
View
@@ -260,7 +260,7 @@ used:
params.require(:log_entry).permit!
```
-This will mark the `:log_entry` parameters hash and any subhash of it
+This will mark the `:log_entry` parameters hash and any sub-hash of it
permitted. Extreme care should be taken when using `permit!` as it
will allow all current and future model attributes to be
mass-assigned.
Please sign in to comment.
Something went wrong with that request. Please try again.