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

Empty arrays persisted in database get demongoized and throw ArgumentError #55

Open
Startouf opened this issue Jan 6, 2017 · 0 comments

Comments

@Startouf
Copy link

Startouf commented Jan 6, 2017

I ended up having an empty array written to the database for my Point, and it becomes impossible to fix it from the console.

Mongoid-Geospatial will try to deserialize the empty array and instanciate the Point object from the array coordinates. It results an ArgumentError: wrong number of arguments (given 0, expected 2..3)

I am not sure how and if this should be handled by the gem

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

No branches or pull requests

2 participants