vendredi 20 avril 2018

validate regexp mongoid "_id"

I would like validate in my rails User model mongoid "_id" field with a regexp.

This is a field with 24 characters, something like this:

#<User _id: 5ad98cf7a8abbc7110f5783c

Thank you

Aucun commentaire:

Enregistrer un commentaire