1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_controller
Yutaka Kamei 0b7f37fbed
Initialize ActionController::Parameters with @logging_context
`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`
2021-12-16 23:11:49 +09:00
..
api
metal Initialize ActionController::Parameters with @logging_context 2021-12-16 23:11:49 +09:00
railties
api.rb Documentation for ActionController::API use neutral language [ci skip] 2021-06-22 10:21:39 -07:00
base.rb
caching.rb
form_builder.rb
log_subscriber.rb Remove unused instrumentation hooks from action_controller 2021-10-03 21:23:42 +09:00
metal.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
railtie.rb Wrap ActionController::TestCase with Rails executor 2021-11-26 17:54:47 -06:00
renderer.rb
template_assertions.rb
test_case.rb ActionController::TestCase: reset instance variables after each request 2021-12-09 16:22:54 -06:00