fixed documentation: before(:delete) => before(:destroy)

This commit is contained in:
Jonathan S. Katz 2008-10-30 01:26:49 -04:00 committed by Chris Anderson
parent 3bff23e7c5
commit 081cf171cd

View file

@ -493,7 +493,7 @@ module CouchRest
raise "#{self.inspect} failed to save" unless self.save raise "#{self.inspect} failed to save" unless self.save
end end
# Deletes the document from the database. Runs the :delete callbacks. # Deletes the document from the database. Runs the :destroy callbacks.
# Removes the <tt>_id</tt> and <tt>_rev</tt> fields, preparing the # Removes the <tt>_id</tt> and <tt>_rev</tt> fields, preparing the
# document to be saved to a new <tt>_id</tt>. # document to be saved to a new <tt>_id</tt>.
def destroy def destroy