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
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
..
cases Add config.default_method_for_update to support PATCH 2012-02-22 08:47:10 -08:00
fixtures Prefer to document with https:// example URLs and no port numbers 2012-01-22 17:27:53 -07:00
abstract_unit.rb require minitest rather than test/unit 2012-01-06 15:50:47 -08:00
setter_trap.rb remove a circular dependency 2011-05-18 00:34:09 -04:00