Permalink
Browse files

strip old create and update

  • Loading branch information...
1 parent 081cf17 commit 93d8fd25fbfaf4042daa4fb6150e64cff26e3388 Chris Anderson committed Jan 13, 2009
Showing with 0 additions and 14 deletions.
  1. +0 −14 lib/couchrest/core/model.rb
@@ -547,20 +547,6 @@ def attachment_url(attachment_name)
"#{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

0 comments on commit 93d8fd2

Please sign in to comment.