aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-02-22 09:00:53 -0800
committerXavier Noria <fxn@hashref.com>2012-02-22 09:00:53 -0800
commit7f2548e34d79c47ca138ca0378f4a06390c407f1 (patch)
tree4807b806fe8f3cfe30314fc522599b776e4a6d36 /activemodel/lib
parentf28d9f15482addeb95ab05545b7a8467a4e0182d (diff)
parent002713c64568114f3754799acc0723ea0d442f7a (diff)
downloadrails-7f2548e34d79c47ca138ca0378f4a06390c407f1.tar.gz
rails-7f2548e34d79c47ca138ca0378f4a06390c407f1.tar.bz2
rails-7f2548e34d79c47ca138ca0378f4a06390c407f1.zip
Merge pull request #5130 from dlee/revised_patch_verb
Add config.default_method_for_update to support PATCH
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/lint.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/lint.rb b/activemodel/lib/active_model/lint.rb
index 49ea894150..a10fdefd1a 100644
--- a/activemodel/lib/active_model/lint.rb
+++ b/activemodel/lib/active_model/lint.rb
@@ -62,9 +62,9 @@ module ActiveModel
#
# Returns a boolean that specifies whether the object has been persisted yet.
# This is used when calculating the URL for an object. If the object is
- # not persisted, a form for that object, for instance, will be POSTed to the
- # collection. If it is persisted, a form for the object will be PUT to the
- # URL for the object.
+ # not persisted, a form for that object, for instance, will route to the
+ # create action. If it is persisted, a form for the object will routes to
+ # the update action.
def test_persisted?
assert model.respond_to?(:persisted?), "The model should respond to persisted?"
assert_boolean model.persisted?, "persisted?"