more notions
This commit is contained in:
parent
0769c2690f
commit
32ffbfe019
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue