couchrest/couchrest_model — Issue #120: the id method in embeddable returns nil if there's no base doc
Author: RicSwirrl
Created: 2011-10-12 13:45:02+00:00
State: open

I tin the embeddable module, the `id` method returns nil if there is no base doc.

``` ruby
def id
return nil if base_doc.nil?
base_doc.id
end
```

I think this means that for the model in which you're embedding stuff, `id is always nil. Which is bad.