From 081cf171cd73f8afa42ba8715d2dd3cd9735c68c Mon Sep 17 00:00:00 2001 From: "Jonathan S. Katz" Date: Thu, 30 Oct 2008 01:26:49 -0400 Subject: [PATCH] fixed documentation: before(:delete) => before(:destroy) --- lib/couchrest/core/model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/couchrest/core/model.rb b/lib/couchrest/core/model.rb index a47a171..d1f7005 100644 --- a/lib/couchrest/core/model.rb +++ b/lib/couchrest/core/model.rb @@ -493,7 +493,7 @@ module CouchRest raise "#{self.inspect} failed to save" unless self.save end - # Deletes the document from the database. Runs the :delete callbacks. + # Deletes the document from the database. Runs the :destroy callbacks. # Removes the _id and _rev fields, preparing the # document to be saved to a new _id. def destroy