Renamed new_document? and new_model? to simply new?
This commit is contained in:
parent
b4e2250668
commit
76b1563539
8 changed files with 26 additions and 26 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue