Renamed new_document? and new_model? to simply new?

This commit is contained in:
Peter Gumeson 2009-06-04 20:44:44 -07:00
parent b4e2250668
commit 76b1563539
8 changed files with 26 additions and 26 deletions

View file

@ -37,10 +37,10 @@ module CouchRest
# False if the casted model has already
# been saved in the containing document
def new_model?
def new?
!@document_saved
end
alias :new_record? :new_model?
alias :new_record? :new?
# Sets the attributes from a hash
def update_attributes_without_saving(hash)