Padrino Admin (12.0) + Mongoid: escaped quotes break MongoDB array syntax

119 Views Asked by At

Whenever I edit an object with an array field with Padrino Admin interface, the quotes are escaped and MongoDB doesn't recognize the array as an array anymore.

Fields are correctly defined as arrays in the object model definitions.

Any ideas?

Edit: the array is received by the controller's post and put methods as such, it's after the document is persisted to MongoDB that it's escaped resulting in a string. Maybe this has to do with MongoDB serialization?

0

There are 0 best solutions below