more notions

This commit is contained in:
Chris Anderson 2008-11-20 17:03:06 -08:00
parent 0769c2690f
commit 32ffbfe019
2 changed files with 2 additions and 1 deletions

View file

@ -28,7 +28,7 @@ module CouchRest
end end
# returns true if the document has never been saved # returns true if the document has never been saved
def new_record? def new_document?
!rev !rev
end end

View file

@ -16,6 +16,7 @@ end
class Question < CouchRest::Model class Question < CouchRest::Model
key_accessor :q, :a key_accessor :q, :a
couchrest_type = 'Question'
end end
class Person < CouchRest::Model class Person < CouchRest::Model