strip old create and update

This commit is contained in:
Chris Anderson 2009-01-12 21:07:56 -08:00
parent 081cf171cd
commit 93d8fd25fb

View file

@ -547,20 +547,6 @@ module CouchRest
"#{database.root}/#{self.id}/#{attachment_name}"
end
protected
# Saves a document for the first time, after running the before(:create)
# callbacks, and applying the unique_id.
def create
set_unique_id if respond_to?(:set_unique_id) # hack
save_doc
end
# Saves the document and runs the :update callbacks.
def update
save_doc
end
private
def apply_defaults