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
# returns true if the document has never been saved
def new_record?
def new_document?
!rev
end

View file

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