I would like validate in my rails User model mongoid "_id" field with a regexp.
"_id"
This is a field with 24 characters, something like this:
#<User _id: 5ad98cf7a8abbc7110f5783c
Thank you
Aucun commentaire:
Enregistrer un commentaire