…e or fallback
The role option identifies which parameters are accessible and should be wrapped. The default role is :default.
…angerous especially with Rack::Cache), it should only be loaded when the flash method is called
(cherry picked from commit 7a80b69) Conflicts: actionpack/test/controller/test_test.rb
…he rack headers (and its causing problems for Strong Parameters attempt of wrapping request.parameters because it will change in testing)
Strip null bytes from Location header
This method has no effect since exception handling was moved to middlewares and ActionController tests do not use any middlewares.
We should let the responder to decide what to do with the given overridden response block, and not short circuit it. Fixes #5280
…mplate is being rendered Closes #5025 part 2
This fixes undef `to_str' for Rack::Chunked::Body when using caches_action + streaming on an action Closes #5027
`ActionController.force_ssl` redirects http URLs to their https equivalent; however, when a URL contains a query string, the resulting redirect lacked the original query string.
Default responder was only using the given respond block when user requested for HTML format, or JSON/XML format with valid resource. This fix the responder so that it will use the given block regardless of the validity of the resource. Note that in this case you'll have to check for object's validity by yourself in the controller. Fixes #4796
ActionController::ActionControllerError is already defined in action_controller/metal/exceptions.
Use the constants AbstractController::ActionNotFound and AbstractController::DoubleRenderError respectively instead.
Signed-off-by: José Valim <firstname.lastname@example.org>
…al in production.