1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activeresource/test/cases
David Lee 002713c645 Add config.default_method_for_update to support PATCH
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.
2012-02-22 08:47:10 -08:00
..
base activeresource tests use AS::TestCase 2012-01-05 17:08:07 -08:00
authorization_test.rb Split Basic and Digest authorization tests 2012-01-21 16:14:10 -07:00
base_errors_test.rb add handling for backwards-compatibility and update documentation 2012-02-04 16:02:52 -06:00
base_test.rb Remove double test for header inheritance leaks 2012-02-14 10:53:34 -06:00
connection_test.rb Clean up http config 2012-01-22 17:51:32 -07:00
finder_test.rb activeresource tests use AS::TestCase 2012-01-05 17:08:07 -08:00
format_test.rb Add config.default_method_for_update to support PATCH 2012-02-22 08:47:10 -08:00
http_mock_test.rb Add config.default_method_for_update to support PATCH 2012-02-22 08:47:10 -08:00
log_subscriber_test.rb
observing_test.rb activeresource tests use AS::TestCase 2012-01-05 17:08:07 -08:00
validations_test.rb