Testing model name
This commit is contained in:
parent
188fd0d4de
commit
d138ebc05f
2 changed files with 15 additions and 5 deletions
|
@ -98,11 +98,14 @@ module CouchRest
|
|||
def persisted?
|
||||
!new?
|
||||
end
|
||||
|
||||
def to_key
|
||||
new? ? nil : [id]
|
||||
end
|
||||
|
||||
alias :to_param :id
|
||||
alias :new_record? :new?
|
||||
alias :new_document? :new?
|
||||
alias :to_key :id
|
||||
alias :to_param :id
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue