Casted Model now no longer depends on a Hash

This commit is contained in:
Sam Lown 2011-06-25 00:58:50 +02:00
parent 98772ae98a
commit 406d2bc791
8 changed files with 57 additions and 26 deletions

View file

@ -81,10 +81,6 @@ module CouchRest
super
end
def persisted?
!new?
end
def to_key
new? ? nil : [id]
end