Skip to content

Commit

Permalink
more notions
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Anderson committed Nov 21, 2008
1 parent 0769c26 commit 32ffbfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/couchrest/core/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def rev
end

# returns true if the document has never been saved
def new_record?
def new_document?
!rev
end

Expand Down
1 change: 1 addition & 0 deletions spec/couchrest/core/model_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class WithTemplate < CouchRest::Model

class Question < CouchRest::Model
key_accessor :q, :a
couchrest_type = 'Question'
end

class Person < CouchRest::Model
Expand Down

0 comments on commit 32ffbfe

Please sign in to comment.