Casted Model now no longer depends on a Hash
This commit is contained in:
parent
98772ae98a
commit
406d2bc791
8 changed files with 57 additions and 26 deletions
|
@ -81,10 +81,6 @@ module CouchRest
|
|||
super
|
||||
end
|
||||
|
||||
def persisted?
|
||||
!new?
|
||||
end
|
||||
|
||||
def to_key
|
||||
new? ? nil : [id]
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue