Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cchavez opened this issue Apr 2, 2014 · 0 comments
Open

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

cchavez opened this issue Apr 2, 2014 · 0 comments

Comments

@cchavez
Copy link

cchavez commented Apr 2, 2014

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant