From 93d8fd25fbfaf4042daa4fb6150e64cff26e3388 Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Mon, 12 Jan 2009 21:07:56 -0800 Subject: [PATCH] strip old create and update --- lib/couchrest/core/model.rb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/couchrest/core/model.rb b/lib/couchrest/core/model.rb index d1f7005..3ffac88 100644 --- a/lib/couchrest/core/model.rb +++ b/lib/couchrest/core/model.rb @@ -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