mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
002713c645
PATCH is the correct HTML verb to map to the #update action. The semantics for PATCH allows for partial updates, whereas PUT requires a complete replacement. Changes: * adds config.default_method_for_update you can set to :patch * optionally use PATCH instead of PUT in resource routes and forms * adds the #patch verb to routes to detect PATCH requests * adds #patch? to Request * changes documentation and comments to indicate support for PATCH This change maintains complete backwards compatibility by keeping :put as the default for config.default_method_for_update. |
||
---|---|---|
.. | ||
base | ||
authorization_test.rb | ||
base_errors_test.rb | ||
base_test.rb | ||
connection_test.rb | ||
finder_test.rb | ||
format_test.rb | ||
http_mock_test.rb | ||
log_subscriber_test.rb | ||
observing_test.rb | ||
validations_test.rb |