strip old create and update
This commit is contained in:
parent
081cf171cd
commit
93d8fd25fb
1 changed files with 0 additions and 14 deletions
|
@ -547,20 +547,6 @@ module CouchRest
|
||||||
"#{database.root}/#{self.id}/#{attachment_name}"
|
"#{database.root}/#{self.id}/#{attachment_name}"
|
||||||
end
|
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
|
private
|
||||||
|
|
||||||
def apply_defaults
|
def apply_defaults
|
||||||
|
|
Loading…
Add table
Reference in a new issue