Skip to content

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

@Startouf

Description

@Startouf

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions