more notions
This commit is contained in:
parent
0769c2690f
commit
32ffbfe019
|
@ -28,7 +28,7 @@ module CouchRest
|
|||
end
|
||||
|
||||
# returns true if the document has never been saved
|
||||
def new_record?
|
||||
def new_document?
|
||||
!rev
|
||||
end
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ end
|
|||
|
||||
class Question < CouchRest::Model
|
||||
key_accessor :q, :a
|
||||
couchrest_type = 'Question'
|
||||
end
|
||||
|
||||
class Person < CouchRest::Model
|
||||
|
|
Loading…
Reference in a new issue