couchrest / couchrest_model

Doing the simple stuff so you don't have to
Apache License 2.0
304 stars 116 forks source link

CouchRest::Model::Embeddable and to_key method #188

Open cchavez opened 10 years ago

cchavez commented 10 years ago

Hello all.

I have a form migrated from couchrest 0.34 which edit some CastedModel records, the old CastedModel did not define the method to_key, so it call the to_key method from active model which returns the id wrapped in an array, but now Embeddable module define the to_key method and returns id as is, this break the form.

I understand that active model is expecting and array from to_key method.

any one has saw this issue?