rails/actionpack/test
euglena1215 9d2a7f89ee
Prevent NoMethodError in extract_value when specifying non-existent keys
Introduced in https://github.com/rails/rails/pull/49042, the method `ActionController::Parameters#extract_value` promises to replace utility methods that were previously defined as private methods in controllers.
However, it currently throws a `NoMethodError` when passed a non-existent key.

`params` is dependent on client requests and is thus beyond the application's control.
Rather than throwing a `NoMethodError`, it would be more convenient for the method to return `nil`.
2023-08-31 22:31:24 +09:00
..
abstract Raise error when callback's only/unless symbols aren't methods 2021-12-14 15:22:08 -05:00
assertions Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
controller Prevent NoMethodError in extract_value when specifying non-existent keys 2023-08-31 22:31:24 +09:00
dispatch Ensure response.parsed_body support for pattern matching 2023-08-23 13:28:02 -04:00
fixtures Fix word case. html -> HTML 2022-09-18 04:21:22 +10:00
journey Use expected casing for x-cascade headers in router 2023-07-28 16:17:08 -04:00
lib Include layout when rendering objects from controllers 2020-10-14 11:49:45 -06:00
routing Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
support Introduce Journey::Ast to avoid extra ast walks 2021-07-29 16:23:11 -04:00
abstract_unit.rb Remove deprecation messages from actionpack test suite 2023-08-23 18:43:35 +00:00