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` |
||
---|---|---|
.. | ||
api | ||
metal | ||
railties | ||
api.rb | ||
base.rb | ||
caching.rb | ||
form_builder.rb | ||
log_subscriber.rb | ||
metal.rb | ||
railtie.rb | ||
renderer.rb | ||
template_assertions.rb | ||
test_case.rb |