mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
0b7f37fbed
`params` contains `@logging_context` in its instance to notify unpermitted parameters including the context through Rails Instrumentation API. However, the logging context disappeared when `params` is updated with some methods, such as `require`, `slice`, `merge`, etc, so the subscriber of `unpermitted_parameters` could not get the information. This patch tries to initialize `Parameters` with `@logging_context` where it makes sense to pass the information. The following methods will be affected with this patch: * `require` * `deep_dup` * `slice` * `except` * `extract!` * `transform_values` * `transform_keys` * `deep_transform_keys` * `select` * `reject` * `compact` * `merge` * `reverse_merge` |
||
---|---|---|
.. | ||
accessors_test.rb | ||
always_permitted_parameters_test.rb | ||
dup_test.rb | ||
log_on_unpermitted_params_test.rb | ||
multi_parameter_attributes_test.rb | ||
mutators_test.rb | ||
nested_parameters_permit_test.rb | ||
parameters_permit_test.rb | ||
raise_on_unpermitted_params_test.rb | ||
serialization_test.rb |